public interface ProjectingLuceneOperations extends LuceneOperations
ProjectingLuceneOperations
interface defines a contract for implementing classes to execute
Lucene data access operations and mapping the results to entity domain types
.List
,
Page
,
LuceneOperations
,
LuceneQueryProvider
DEFAULT_PAGE_SIZE, DEFAULT_RESULT_LIMIT
Modifier and Type | Method and Description |
---|---|
default <T> List<T> |
query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider,
Class<T> projectionType)
Executes the provided
query with the results projected as instances of
the projectionType . |
<T> List<T> |
query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider,
int resultLimit,
Class<T> projectionType)
Executes the provided
query with the limited results projected as instances of
the projectionType . |
<T> Page<T> |
query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider,
int resultLimit,
int pageSize,
Class<T> projectionType)
Executes the provided
query with the limited results projected as instances of
the projectionType . |
default <T> List<T> |
query(String query,
String defaultField,
Class<T> projectionType)
Executes the given
query with the results projected as instances of
the projectionType . |
<T> List<T> |
query(String query,
String defaultField,
int resultLimit,
Class<T> projectionType)
Executes the given
query with the limited results projected as instances of
the projectionType . |
<T> Page<T> |
query(String query,
String defaultField,
int resultLimit,
int pageSize,
Class<T> projectionType)
Executes the given
query with the limited results projected as instances of
the projectionType . |
query, query, query, query, query, query, queryForKeys, queryForKeys, queryForKeys, queryForKeys, queryForValues, queryForValues, queryForValues, queryForValues
default <T> List<T> query(String query, String defaultField, Class<T> projectionType)
query
with the results projected as instances of
the projectionType
.T
- Class
type of the projection.query
- Lucene query
to execute.defaultField
- String
specifying the default field used in Lucene queries when a field
is not explicitly defined in the Lucene query clause.projectionType
- Class
type of the individual elements in the query results.List
of Lucene query results projected as instances of projectionType
.query(String, String, int, Class)
,
List
<T> List<T> query(String query, String defaultField, int resultLimit, Class<T> projectionType)
query
with the limited results projected as instances of
the projectionType
.T
- Class
type of the projection.query
- Lucene query
to execute.defaultField
- String
specifying the default field used in Lucene queries when a field
is not explicitly defined in the Lucene query clause.resultLimit
- limit on the number of query results to return.projectionType
- Class
type of the individual elements in the query results.List
of Lucene query results projected as instances of projectionType
.query(String, String, int, Class)
,
List
<T> Page<T> query(String query, String defaultField, int resultLimit, int pageSize, Class<T> projectionType)
query
with the limited results projected as instances of
the projectionType
.T
- Class
type of the projection.query
- Lucene query
to execute.defaultField
- String
specifying the default field used in Lucene queries when a field
is not explicitly defined in the Lucene query clause.resultLimit
- limit on the number of query results to return.pageSize
- number of results on a Page
.projectionType
- Class
type of the individual elements in the query results.Page
of results returned from the Lucene query.Page
default <T> List<T> query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, Class<T> projectionType)
query
with the results projected as instances of
the projectionType
.T
- Class
type of the projection.queryProvider
- LuceneQueryProvider
providing the Lucene query
to execute.projectionType
- Class
type of the individual elements in the query results.List
of Lucene query results projected as instances of projectionType
.LuceneQueryProvider
,
query(LuceneQueryProvider, int, Class)
,
List
<T> List<T> query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit, Class<T> projectionType)
query
with the limited results projected as instances of
the projectionType
.T
- Class
type of the projection.queryProvider
- LuceneQueryProvider
providing the Lucene query
to execute.resultLimit
- limit on the number of query results to return.projectionType
- Class
type of the individual elements in the query results.List
of Lucene query results projected as instances of projectionType
.LuceneQueryProvider
,
List
<T> Page<T> query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit, int pageSize, Class<T> projectionType)
query
with the limited results projected as instances of
the projectionType
.T
- Class
type of the projection.queryProvider
- LuceneQueryProvider
providing the Lucene query
to execute.resultLimit
- limit on the number of query results to return.pageSize
- number of results on a Page
.projectionType
- Class
type of the individual elements in the query results.Page
of results returned from the Lucene query.LuceneQueryProvider
,
Page
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.