Spring Data for VMware GemFire
Class LuceneAccessorSupport
java.lang.Object
org.springframework.data.gemfire.search.lucene.support.LuceneOperationsSupport
org.springframework.data.gemfire.search.lucene.LuceneAccessor
org.springframework.data.gemfire.search.lucene.support.LuceneAccessorSupport
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,LuceneOperations
- Direct Known Subclasses:
LuceneTemplate
Deprecated.
To be removed in GemFire 10 integration
LuceneAccessorSupport is a LuceneAccessor class implementation providing support
for extending classes.- Since:
- 1.1.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.search.lucene.LuceneAccessor
LuceneAccessor.LuceneQueryExecutor<T> -
Field Summary
Fields inherited from interface org.springframework.data.gemfire.search.lucene.LuceneOperations
DEFAULT_PAGE_SIZE, DEFAULT_RESULT_LIMIT -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructs an uninitialized instance ofLuceneAccessorSupport.LuceneAccessorSupport(String indexName, String regionPath) Deprecated.Constructs an instance ofLuceneAccessorSupportinitialized with the given Luceneindex nameandfully-qualified Region path.LuceneAccessorSupport(String indexName, org.apache.geode.cache.Region<?, ?> region) Deprecated.Constructs an instance ofLuceneAccessorSupportinitialized with the given Luceneindex nameandRegion.LuceneAccessorSupport(org.apache.geode.cache.lucene.LuceneIndex luceneIndex) Deprecated.Constructs an instance ofLuceneAccessorSupportinitialized with the givenLuceneIndex. -
Method Summary
Modifier and TypeMethodDescription<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.<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.<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.<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.<V> Collection<V>queryForValues(String query, String defaultField, int resultLimit) 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.Methods inherited from class org.springframework.data.gemfire.search.lucene.LuceneAccessor
afterPropertiesSet, createLuceneQueryFactory, createLuceneQueryFactory, createLuceneQueryFactory, doFind, getCache, getIndexName, getLuceneIndex, getLuceneService, getRegion, getRegionPath, resolveCache, resolveIndexName, resolveLuceneService, resolveLuceneService, resolveRegionPath, setCache, setIndexName, setLuceneIndex, setLuceneService, setRegion, setRegionPathMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.gemfire.search.lucene.LuceneOperations
query, query, queryForKeys, queryForKeys, queryForValues, queryForValues
-
Constructor Details
-
LuceneAccessorSupport
public LuceneAccessorSupport()Deprecated.Constructs an uninitialized instance ofLuceneAccessorSupport. -
LuceneAccessorSupport
public LuceneAccessorSupport(org.apache.geode.cache.lucene.LuceneIndex luceneIndex) Deprecated.Constructs an instance ofLuceneAccessorSupportinitialized with the givenLuceneIndex.- Parameters:
luceneIndex-LuceneIndexused in Lucene queries.- See Also:
-
LuceneIndex
-
LuceneAccessorSupport
Deprecated.Constructs an instance ofLuceneAccessorSupportinitialized with the given Luceneindex nameandRegion.- Parameters:
indexName-Stringcontaining the name of theLuceneIndex.region-Regionon which the Lucene query is executed.- See Also:
-
Region
-
LuceneAccessorSupport
Deprecated.Constructs an instance ofLuceneAccessorSupportinitialized with the given Luceneindex nameandfully-qualified Region path.
-
-
Method Details
-
query
public <K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K,V>> query(String query, String defaultField, int resultLimit) Deprecated.Description copied from interface:LuceneOperationsExecutes the given Lucenequerywith a limit on the number of results returned.- Specified by:
queryin interfaceLuceneOperations- Overrides:
queryin classLuceneOperationsSupport- 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
public <K,V> org.apache.geode.cache.lucene.PageableLuceneQueryResults<K,V> query(String query, String defaultField, int resultLimit, int pageSize) Deprecated.Description copied from interface:LuceneOperationsExecutes the given Lucenequerywith a limit on the number of results returned along with a page size for paging.- Specified by:
queryin interfaceLuceneOperations- Overrides:
queryin classLuceneOperationsSupport- 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
public <K,V> List<org.apache.geode.cache.lucene.LuceneResultStruct<K,V>> query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit) Deprecated.Description copied from interface:LuceneOperationsExecutes the given Lucenequerywith a limit on the number of results returned.- Specified by:
queryin interfaceLuceneOperations- Overrides:
queryin classLuceneOperationsSupport- 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
public <K,V> org.apache.geode.cache.lucene.PageableLuceneQueryResults<K,V> query(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit, int pageSize) Deprecated.Description copied from interface:LuceneOperationsExecutes the given Lucenequerywith a limit on the number of results returned along with a page size for paging.- Specified by:
queryin interfaceLuceneOperations- Overrides:
queryin classLuceneOperationsSupport- 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.Description copied from interface:LuceneOperationsExecutes the given Lucenequeryreturning aCollectionof keys matching the query clause/predicate with a limit on the number of keys returned.- Specified by:
queryForKeysin interfaceLuceneOperations- Overrides:
queryForKeysin classLuceneOperationsSupport- 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
public <K> Collection<K> queryForKeys(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit) Deprecated.Description copied from interface:LuceneOperationsExecutes the given Lucenequeryreturning aCollectionof keys matching the query clause/predicate with a limit on the number of keys returned.- Specified by:
queryForKeysin interfaceLuceneOperations- Overrides:
queryForKeysin classLuceneOperationsSupport- 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:
-
LuceneQueryProviderLuceneOperations.queryForKeys(String, String, int)Collection
-
queryForValues
Deprecated.Description copied from interface:LuceneOperationsExecutes the given Lucenequeryreturning aCollectionof values matching the query clause/predicate.- Specified by:
queryForValuesin interfaceLuceneOperations- Overrides:
queryForValuesin classLuceneOperationsSupport- 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
public <V> Collection<V> queryForValues(org.apache.geode.cache.lucene.LuceneQueryProvider queryProvider, int resultLimit) Deprecated.Description copied from interface:LuceneOperationsExecutes the given Lucenequeryreturning aCollectionof values matching the query clause/predicate.- Specified by:
queryForValuesin interfaceLuceneOperations- Overrides:
queryForValuesin classLuceneOperationsSupport- 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:
-
LuceneQueryProviderLuceneOperations.queryForValues(String, String, int)Collection
-