public abstract class LuceneOperationsSupport extends Object implements LuceneOperations
LuceneOperationsSupport
is a abstract supporting class for implementations
of the LuceneOperations
interface.LuceneOperations
DEFAULT_PAGE_SIZE, DEFAULT_RESULT_LIMIT
Constructor and Description |
---|
LuceneOperationsSupport() |
Modifier and Type | Method and Description |
---|---|
<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. |
<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. |
<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. |
<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. |
<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. |
<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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
query, query, queryForKeys, queryForKeys, queryForValues, queryForValues
public <K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K,V>> query(String query, String defaultField, int resultLimit)
LuceneOperations
query
with a limit on the number of results returned.query
in interface LuceneOperations
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
public <K,V> org.apache.geode.cache.lucene.PageableLuceneQueryResults<K,V> query(String query, String defaultField, int resultLimit, int pageSize)
LuceneOperations
query
with a limit on the number of results returned
along with a page size for paging.query
in interface LuceneOperations
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
public <K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K,V>> query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit)
LuceneOperations
query
with a limit on the number of results returned.query
in interface LuceneOperations
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
public <K,V> org.apache.geode.cache.lucene.PageableLuceneQueryResults<K,V> query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit, int pageSize)
LuceneOperations
query
with a limit on the number of results returned
along with a page size for paging.query
in interface LuceneOperations
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
public <K> Collection<K> queryForKeys(String query, String defaultField, int resultLimit)
LuceneOperations
query
returning a Collection
of keys
matching the query clause/predicate with a limit on the number of keys returned.queryForKeys
in interface LuceneOperations
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).LuceneOperations.queryForKeys(String, String, int)
,
Collection
public <K> Collection<K> queryForKeys(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit)
LuceneOperations
query
returning a Collection
of keys
matching the query clause/predicate with a limit on the number of keys returned.queryForKeys
in interface LuceneOperations
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
,
LuceneOperations.queryForKeys(String, String, int)
,
Collection
public <V> Collection<V> queryForValues(String query, String defaultField, int resultLimit)
LuceneOperations
query
returning a Collection
of values
matching the query clause/predicate.queryForValues
in interface LuceneOperations
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).LuceneOperations.queryForValues(String, String, int)
,
Collection
public <V> Collection<V> queryForValues(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit)
LuceneOperations
query
returning a Collection
of values
matching the query clause/predicate.queryForValues
in interface LuceneOperations
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
,
LuceneOperations.queryForValues(String, String, int)
,
Collection
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.