public interface LuceneOperations
LuceneOperations
interface defines a contract for implementations defining data access operations
using Lucene queries.LuceneQueryFactory
,
LuceneQueryProvider
,
LuceneResultStruct
,
PageableLuceneQueryResults
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PAGE_SIZE |
static int |
DEFAULT_RESULT_LIMIT |
Modifier and Type | Method and Description |
---|---|
default <K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K,V>> |
query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider)
Executes the given Lucene
query . |
<K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K,V>> |
query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider,
int resultLimit)
Executes the given Lucene
query with a limit on the number of results returned. |
<K,V> org.apache.geode.cache.lucene.PageableLuceneQueryResults<K,V> |
query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider,
int resultLimit,
int pageSize)
Executes the given Lucene
query with a limit on the number of results returned
along with a page size for paging. |
default <K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K,V>> |
query(String query,
String defaultField)
Executes the given Lucene
query . |
<K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K,V>> |
query(String query,
String defaultField,
int resultLimit)
Executes the given Lucene
query with a limit on the number of results returned. |
<K,V> org.apache.geode.cache.lucene.PageableLuceneQueryResults<K,V> |
query(String query,
String defaultField,
int resultLimit,
int pageSize)
Executes the given Lucene
query with a limit on the number of results returned
along with a page size for paging. |
default <K> Collection<K> |
queryForKeys(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider)
Executes the given Lucene
query returning a Collection of keys
matching the query clause/predicate. |
<K> Collection<K> |
queryForKeys(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider,
int resultLimit)
Executes the given Lucene
query returning a Collection of keys
matching the query clause/predicate with a limit on the number of keys returned. |
default <K> Collection<K> |
queryForKeys(String query,
String defaultField)
Executes the given Lucene
query returning a Collection of keys
matching the query clause/predicate. |
<K> Collection<K> |
queryForKeys(String query,
String defaultField,
int resultLimit)
Executes the given Lucene
query returning a Collection of keys
matching the query clause/predicate with a limit on the number of keys returned. |
default <V> Collection<V> |
queryForValues(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider)
Executes the given Lucene
query returning a Collection of values
matching the query clause/predicate. |
<V> Collection<V> |
queryForValues(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider,
int resultLimit)
Executes the given Lucene
query returning a Collection of values
matching the query clause/predicate. |
default <V> Collection<V> |
queryForValues(String query,
String defaultField)
Executes the given Lucene
query returning a Collection of values
matching the query clause/predicate. |
<V> Collection<V> |
queryForValues(String query,
String defaultField,
int resultLimit)
Executes the given Lucene
query returning a Collection of values
matching the query clause/predicate. |
static final int DEFAULT_PAGE_SIZE
static final int DEFAULT_RESULT_LIMIT
default <K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K,V>> query(String query, String defaultField)
query
.K
- Class
type of the key.V
- Class
type of the value.query
- String
containing the 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.List
of LuceneResultStruct
containing the query results.LuceneResultStruct
,
query(String, String, int)
,
List
<K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K,V>> query(String query, String defaultField, int resultLimit)
query
with a limit on the number of results returned.K
- Class
type of the key.V
- Class
type of the value.query
- String
containing the 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.List
of LuceneResultStruct
containing the query results.LuceneResultStruct
,
List
<K,V> org.apache.geode.cache.lucene.PageableLuceneQueryResults<K,V> query(String query, String defaultField, int resultLimit, int pageSize)
query
with a limit on the number of results returned
along with a page size for paging.K
- Class
type of the key.V
- Class
type of the value.query
- String
containing the 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 per page.PageableLuceneQueryResults
data structure containing the results of the Lucene query.PageableLuceneQueryResults
default <K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K,V>> query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider)
query
.K
- Class
type of the key.V
- Class
type of the value.queryProvider
- LuceneQueryProvider
is a provider implementation supplying the Lucene query
to execute as well as de/serialize to distribute across the cluster.List
of LuceneResultStruct
containing the query results.LuceneQueryProvider
,
LuceneResultStruct
,
query(LuceneQueryProvider, int)
,
List
<K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K,V>> query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit)
query
with a limit on the number of results returned.K
- Class
type of the key.V
- Class
type of the value.queryProvider
- LuceneQueryProvider
is a provider implementation supplying the Lucene query
to execute as well as de/serialize to distribute across the cluster.resultLimit
- limit on the number of query results to return.List
of LuceneResultStruct
containing the query results.LuceneQueryProvider
,
LuceneResultStruct
,
List
<K,V> org.apache.geode.cache.lucene.PageableLuceneQueryResults<K,V> query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit, int pageSize)
query
with a limit on the number of results returned
along with a page size for paging.K
- Class
type of the key.V
- Class
type of the value.queryProvider
- LuceneQueryProvider
is a provider implementation supplying the Lucene query
to execute as well as de/serialize to distribute across the cluster.resultLimit
- limit on the number of query results to return.pageSize
- number of results per page.PageableLuceneQueryResults
data structure containing the results of the Lucene query.LuceneQueryProvider
,
PageableLuceneQueryResults
default <K> Collection<K> queryForKeys(String query, String defaultField)
query
returning a Collection
of keys
matching the query clause/predicate.
The number of keys returned is limited by LuceneQueryFactory.DEFAULT_LIMIT
.K
- Class
type of the key.query
- String
containing the 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.Collection
of keys matching the Lucene query clause (predicate).queryForKeys(String, String, int)
,
Collection
<K> Collection<K> queryForKeys(String query, String defaultField, int resultLimit)
query
returning a Collection
of keys
matching the query clause/predicate with a limit on the number of keys returned.K
- Class
type of the key.query
- String
containing the 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 keys returned.Collection
of keys matching the Lucene query clause (predicate).queryForKeys(String, String, int)
,
Collection
default <K> Collection<K> queryForKeys(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider)
query
returning a Collection
of keys
matching the query clause/predicate.
The number of keys returned is limited by LuceneQueryFactory.DEFAULT_LIMIT
.K
- Class
type of the key.queryProvider
- LuceneQueryProvider
is a provider implementation supplying the Lucene query
to execute as well as de/serialize to distribute across the cluster.Collection
of keys matching the Lucene query clause (predicate).LuceneQueryProvider
,
queryForKeys(String, String, int)
,
Collection
<K> Collection<K> queryForKeys(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit)
query
returning a Collection
of keys
matching the query clause/predicate with a limit on the number of keys returned.K
- Class
type of the key.queryProvider
- LuceneQueryProvider
is a provider implementation supplying the Lucene query
to execute as well as de/serialize to distribute across the cluster.resultLimit
- limit on the number of keys returned.Collection
of keys matching the Lucene query clause (predicate).LuceneQueryProvider
,
queryForKeys(String, String, int)
,
Collection
default <V> Collection<V> queryForValues(String query, String defaultField)
query
returning a Collection
of values
matching the query clause/predicate.
The number of values returned is limited by LuceneQueryFactory.DEFAULT_LIMIT
.V
- Class
type of the value.query
- String
containing the 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.Collection
of values matching Lucene query clause (predicate).queryForValues(String, String, int)
,
Collection
<V> Collection<V> queryForValues(String query, String defaultField, int resultLimit)
query
returning a Collection
of values
matching the query clause/predicate.V
- Class
type of the value.query
- String
containing the 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 values returned.Collection
of values matching Lucene query clause (predicate).queryForValues(String, String, int)
,
Collection
default <V> Collection<V> queryForValues(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider)
query
returning a Collection
of values
matching the query clause/predicate.
The number of values returned is limited by LuceneQueryFactory.DEFAULT_LIMIT
.V
- Class
type of the value.queryProvider
- LuceneQueryProvider
is a provider implementation supplying the Lucene query
to execute as well as de/serialize to distribute across the cluster.Collection
of values matching Lucene query clause (predicate).LuceneQueryProvider
,
queryForValues(String, String, int)
,
Collection
<V> Collection<V> queryForValues(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit)
query
returning a Collection
of values
matching the query clause/predicate.V
- Class
type of the value.queryProvider
- LuceneQueryProvider
is a provider implementation supplying the Lucene query
to execute as well as de/serialize to distribute across the cluster.resultLimit
- limit on the number of values returned.Collection
of values matching Lucene query clause (predicate).LuceneQueryProvider
,
queryForValues(String, String, int)
,
Collection
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.