Spring Data for VMware GemFire
Interface LuceneOperations
- All Known Subinterfaces:
ProjectingLuceneOperations
- All Known Implementing Classes:
LuceneAccessor,LuceneAccessorSupport,LuceneOperationsSupport,LuceneTemplate,ProjectingLuceneAccessor,ProjectingLuceneAccessorSupport,ProjectingLuceneOperationsSupport,ProjectingLuceneTemplate
public interface LuceneOperations
Deprecated.
To be removed in GemFire 10 integration
The
LuceneOperations interface defines a contract for implementations defining data access operations
using Lucene queries.- Since:
- 1.1.0
- See Also:
-
LuceneQueryFactoryLuceneQueryProviderLuceneResultStructPageableLuceneQueryResults
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated. -
Method Summary
Modifier and TypeMethodDescriptiondefault <K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K, V>> Deprecated.Executes the given Lucenequery.<K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K, V>> Deprecated.Executes the given Lucenequerywith a limit on the number of results returned.<K,V> org.apache.geode.cache.lucene.PageableLuceneQueryResults<K, V> Deprecated.Executes the given Lucenequerywith 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(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider) Deprecated.Executes the given Lucenequery.<K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K, V>> query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit) Deprecated.Executes the given Lucenequerywith 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) Deprecated.Executes the given Lucenequerywith a limit on the number of results returned along with a page size for paging.default <K> Collection<K>queryForKeys(String query, String defaultField) Deprecated.Executes the given Lucenequeryreturning aCollectionof keys matching the query clause/predicate.<K> Collection<K>queryForKeys(String query, String defaultField, int resultLimit) Deprecated.Executes the given Lucenequeryreturning aCollectionof keys matching the query clause/predicate with a limit on the number of keys returned.default <K> Collection<K>queryForKeys(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider) Deprecated.Executes the given Lucenequeryreturning aCollectionof keys matching the query clause/predicate.<K> Collection<K>queryForKeys(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit) Deprecated.Executes the given Lucenequeryreturning aCollectionof keys matching the query clause/predicate with a limit on the number of keys returned.default <V> Collection<V>queryForValues(String query, String defaultField) Deprecated.Executes the given Lucenequeryreturning aCollectionof values matching the query clause/predicate.<V> Collection<V>queryForValues(String query, String defaultField, int resultLimit) Deprecated.Executes the given Lucenequeryreturning aCollectionof values matching the query clause/predicate.default <V> Collection<V>queryForValues(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider) Deprecated.Executes the given Lucenequeryreturning aCollectionof values matching the query clause/predicate.<V> Collection<V>queryForValues(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit) Deprecated.Executes the given Lucenequeryreturning aCollectionof values matching the query clause/predicate.
-
Field Details
-
DEFAULT_PAGE_SIZE
static final int DEFAULT_PAGE_SIZEDeprecated.- See Also:
-
DEFAULT_RESULT_LIMIT
static final int DEFAULT_RESULT_LIMITDeprecated.- See Also:
-
-
Method Details
-
query
default <K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K,V>> query(String query, String defaultField) Deprecated.Executes the given Lucenequery.- Type Parameters:
K-Classtype of the key.V-Classtype of the value.- Parameters:
query-Stringcontaining the Lucene query to execute.defaultField-Stringspecifying the default field used in Lucene queries when a field is not explicitly defined in the Lucene query clause.- Returns:
- a
ListofLuceneResultStructcontaining the query results. - See Also:
-
LuceneResultStructquery(String, String, int)List
-
query
<K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K,V>> query(String query, String defaultField, int resultLimit) Deprecated.Executes the given Lucenequerywith a limit on the number of results returned.- Type Parameters:
K-Classtype of the key.V-Classtype of the value.- Parameters:
query-Stringcontaining the Lucene query to execute.defaultField-Stringspecifying 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.- Returns:
- a
ListofLuceneResultStructcontaining the query results. - See Also:
-
LuceneResultStructList
-
query
<K,V> org.apache.geode.cache.lucene.PageableLuceneQueryResults<K,V> query(String query, String defaultField, int resultLimit, int pageSize) Deprecated.Executes the given Lucenequerywith a limit on the number of results returned along with a page size for paging.- Type Parameters:
K-Classtype of the key.V-Classtype of the value.- Parameters:
query-Stringcontaining the Lucene query to execute.defaultField-Stringspecifying 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.- Returns:
- a
PageableLuceneQueryResultsdata structure containing the results of the Lucene query. - See Also:
-
PageableLuceneQueryResults
-
query
default <K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K,V>> query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider) Deprecated.Executes the given Lucenequery.- Type Parameters:
K-Classtype of the key.V-Classtype of the value.- Parameters:
queryProvider-LuceneQueryProvideris a provider implementation supplying the Lucene query to execute as well as de/serialize to distribute across the cluster.- Returns:
- a
ListofLuceneResultStructcontaining the query results. - See Also:
-
LuceneQueryProviderLuceneResultStructquery(LuceneQueryProvider, int)List
-
query
<K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K,V>> query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit) Deprecated.Executes the given Lucenequerywith a limit on the number of results returned.- Type Parameters:
K-Classtype of the key.V-Classtype of the value.- Parameters:
queryProvider-LuceneQueryProvideris 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.- Returns:
- a
ListofLuceneResultStructcontaining the query results. - See Also:
-
LuceneQueryProviderLuceneResultStructList
-
query
<K,V> org.apache.geode.cache.lucene.PageableLuceneQueryResults<K,V> query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit, int pageSize) Deprecated.Executes the given Lucenequerywith a limit on the number of results returned along with a page size for paging.- Type Parameters:
K-Classtype of the key.V-Classtype of the value.- Parameters:
queryProvider-LuceneQueryProvideris 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.- Returns:
- a
PageableLuceneQueryResultsdata structure containing the results of the Lucene query. - See Also:
-
LuceneQueryProviderPageableLuceneQueryResults
-
queryForKeys
Deprecated.Executes the given Lucenequeryreturning aCollectionof keys matching the query clause/predicate. The number of keys returned is limited byLuceneQueryFactory.DEFAULT_LIMIT.- Type Parameters:
K-Classtype of the key.- Parameters:
query-Stringcontaining the Lucene query to execute.defaultField-Stringspecifying the default field used in Lucene queries when a field is not explicitly defined in the Lucene query clause.- Returns:
- a
Collectionof keys matching the Lucene query clause (predicate). - See Also:
-
queryForKeys
Deprecated.Executes the given Lucenequeryreturning aCollectionof keys matching the query clause/predicate with a limit on the number of keys returned.- Type Parameters:
K-Classtype of the key.- Parameters:
query-Stringcontaining the Lucene query to execute.defaultField-Stringspecifying 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.- Returns:
- a
Collectionof keys matching the Lucene query clause (predicate). - See Also:
-
queryForKeys
default <K> Collection<K> queryForKeys(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider) Deprecated.Executes the given Lucenequeryreturning aCollectionof keys matching the query clause/predicate. The number of keys returned is limited byLuceneQueryFactory.DEFAULT_LIMIT.- Type Parameters:
K-Classtype of the key.- Parameters:
queryProvider-LuceneQueryProvideris a provider implementation supplying the Lucene query to execute as well as de/serialize to distribute across the cluster.- Returns:
- a
Collectionof keys matching the Lucene query clause (predicate). - See Also:
-
LuceneQueryProviderqueryForKeys(String, String, int)Collection
-
queryForKeys
<K> Collection<K> queryForKeys(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit) Deprecated.Executes the given Lucenequeryreturning aCollectionof keys matching the query clause/predicate with a limit on the number of keys returned.- Type Parameters:
K-Classtype of the key.- Parameters:
queryProvider-LuceneQueryProvideris 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.- Returns:
- a
Collectionof keys matching the Lucene query clause (predicate). - See Also:
-
LuceneQueryProviderqueryForKeys(String, String, int)Collection
-
queryForValues
Deprecated.Executes the given Lucenequeryreturning aCollectionof values matching the query clause/predicate. The number of values returned is limited byLuceneQueryFactory.DEFAULT_LIMIT.- Type Parameters:
V-Classtype of the value.- Parameters:
query-Stringcontaining the Lucene query to execute.defaultField-Stringspecifying the default field used in Lucene queries when a field is not explicitly defined in the Lucene query clause.- Returns:
- a
Collectionof values matching Lucene query clause (predicate). - See Also:
-
queryForValues
Deprecated.Executes the given Lucenequeryreturning aCollectionof values matching the query clause/predicate.- Type Parameters:
V-Classtype of the value.- Parameters:
query-Stringcontaining the Lucene query to execute.defaultField-Stringspecifying 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.- Returns:
- a
Collectionof values matching Lucene query clause (predicate). - See Also:
-
queryForValues
default <V> Collection<V> queryForValues(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider) Deprecated.Executes the given Lucenequeryreturning aCollectionof values matching the query clause/predicate. The number of values returned is limited byLuceneQueryFactory.DEFAULT_LIMIT.- Type Parameters:
V-Classtype of the value.- Parameters:
queryProvider-LuceneQueryProvideris a provider implementation supplying the Lucene query to execute as well as de/serialize to distribute across the cluster.- Returns:
- a
Collectionof values matching Lucene query clause (predicate). - See Also:
-
LuceneQueryProviderqueryForValues(String, String, int)Collection
-
queryForValues
<V> Collection<V> queryForValues(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit) Deprecated.Executes the given Lucenequeryreturning aCollectionof values matching the query clause/predicate.- Type Parameters:
V-Classtype of the value.- Parameters:
queryProvider-LuceneQueryProvideris 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.- Returns:
- a
Collectionof values matching Lucene query clause (predicate). - See Also:
-
LuceneQueryProviderqueryForValues(String, String, int)Collection
-