Class LuceneAccessor
java.lang.Object
org.springframework.data.gemfire.search.lucene.support.LuceneOperationsSupport
org.springframework.data.gemfire.search.lucene.LuceneAccessor
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,LuceneOperations
- Direct Known Subclasses:
LuceneAccessorSupport
public abstract class LuceneAccessor
extends LuceneOperationsSupport
implements org.springframework.beans.factory.InitializingBean
Deprecated.
To be removed in GemFire 10 integration
LuceneAccessor
is an abstract class supporting implementations of the LuceneOperations
interface
encapsulating common functionality necessary to execute Lucene queries.- Since:
- 1.1.0
- See Also:
-
InitializingBean
LuceneOperationsSupport
GemFireCache
Region
LuceneIndex
LuceneQuery
LuceneQueryFactory
LuceneService
LuceneServiceProvider
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
Deprecated. -
Field Summary
Fields inherited from interface org.springframework.data.gemfire.search.lucene.LuceneOperations
DEFAULT_PAGE_SIZE, DEFAULT_RESULT_LIMIT
-
Constructor Summary
ConstructorDescriptionDeprecated.Constructs an uninitialized instance ofLuceneAccessor
.LuceneAccessor
(String indexName, String regionPath) Deprecated.Constructs an instance of theLuceneAccessor
initialized with the given Lucene index name andRegion
reference upon which Lucene queries are executed.LuceneAccessor
(String indexName, org.apache.geode.cache.Region<?, ?> region) Deprecated.Constructs an instance of theLuceneAccessor
initialized with the given Lucene index name andRegion
reference upon which Lucene queries are executed.LuceneAccessor
(org.apache.geode.cache.lucene.LuceneIndex luceneIndex) Deprecated.Constructs an instance of theLuceneAccessor
initialized with the givenLuceneIndex
used to perform Lucene queries (searches). -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.org.apache.geode.cache.lucene.LuceneQueryFactory
Deprecated.Creates an instance of theLuceneQueryFactory
to create and executeLucene queries
.org.apache.geode.cache.lucene.LuceneQueryFactory
createLuceneQueryFactory
(int resultLimit) Deprecated.Creates an instance of theLuceneQueryFactory
to create and executeLucene queries
.org.apache.geode.cache.lucene.LuceneQueryFactory
createLuceneQueryFactory
(int resultLimit, int pageSize) Deprecated.Creates an instance of theLuceneQueryFactory
to create and executeLucene queries
.protected <T> T
doFind
(LuceneAccessor.LuceneQueryExecutor<T> queryExecutor, Object query, String regionPath, String indexName) Deprecated.protected org.apache.geode.cache.GemFireCache
getCache()
Deprecated.Returns a reference to theGemFireCache
.Deprecated.Returns the name of theLuceneIndex
used in Lucene queries.org.apache.geode.cache.lucene.LuceneIndex
Deprecated.Returns a reference to theLuceneIndex
used in Lucene queries.protected org.apache.geode.cache.lucene.LuceneService
Deprecated.Returns a reference to theLuceneService
used to perform Lucene query data access operations.org.apache.geode.cache.Region<?,
?> Deprecated.Returns a reference to theRegion
used to specify Lucene queries.Deprecated.Returns a fully-qualified pathname to theRegion
used to specify Lucene queries.protected org.apache.geode.cache.GemFireCache
Deprecated.Resolves a reference to theGemFireCache
.protected String
Deprecated.Resolves the name of theLuceneIndex
required in the Lucene data access, query operations when aLuceneIndex
is not specifically provided.protected org.apache.geode.cache.lucene.LuceneService
Deprecated.Resolves theLuceneService
used by this data access object to perform Lucene queries.protected org.apache.geode.cache.lucene.LuceneService
resolveLuceneService
(org.apache.geode.cache.GemFireCache gemfireCache) Deprecated.Resolves theLuceneService
used by this data access object to perform Lucene queries.protected String
Deprecated.Resolves the fully-qualified pathname of theRegion
to which the Lucene data access, query operations are performed and theLuceneIndex
is applied, when aregion path
is not specifically provided.<T extends LuceneAccessor>
TsetCache
(org.apache.geode.cache.GemFireCache gemfireCache) Deprecated.Sets a reference to theGemFireCache
.<T extends LuceneAccessor>
TsetIndexName
(String indexName) Deprecated.Sets the name of theLuceneIndex
used in Lucene queries.<T extends LuceneAccessor>
TsetLuceneIndex
(org.apache.geode.cache.lucene.LuceneIndex luceneIndex) Deprecated.Sets a reference to theLuceneIndex
used in Lucene queries.<T extends LuceneAccessor>
TsetLuceneService
(org.apache.geode.cache.lucene.LuceneService luceneService) Deprecated.Sets a reference to theLuceneService
used to perform Lucene query data access operations.<T extends LuceneAccessor>
TsetRegion
(org.apache.geode.cache.Region<?, ?> region) Deprecated.Sets a reference to theRegion
used to specify Lucene queries.<T extends LuceneAccessor>
TsetRegionPath
(String regionPath) Deprecated.Sets a fully-qualified pathname to theRegion
used to specify Lucene queries.Methods inherited from class org.springframework.data.gemfire.search.lucene.support.LuceneOperationsSupport
query, query, query, query, queryForKeys, queryForKeys, queryForValues, queryForValues
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.gemfire.search.lucene.LuceneOperations
query, query, queryForKeys, queryForKeys, queryForValues, queryForValues
-
Constructor Details
-
LuceneAccessor
public LuceneAccessor()Deprecated.Constructs an uninitialized instance ofLuceneAccessor
. -
LuceneAccessor
public LuceneAccessor(org.apache.geode.cache.lucene.LuceneIndex luceneIndex) Deprecated.Constructs an instance of theLuceneAccessor
initialized with the givenLuceneIndex
used to perform Lucene queries (searches).- Parameters:
luceneIndex
-LuceneIndex
used in Lucene queries.- See Also:
-
LuceneIndex
-
LuceneAccessor
Deprecated.Constructs an instance of theLuceneAccessor
initialized with the given Lucene index name andRegion
reference upon which Lucene queries are executed.- Parameters:
indexName
-String
containing the name of theLuceneIndex
used in Lucene queries.region
-Region
on which Lucene queries are executed.- See Also:
-
Region
-
LuceneAccessor
Deprecated.Constructs an instance of theLuceneAccessor
initialized with the given Lucene index name andRegion
reference upon which Lucene queries are executed.
-
-
Method Details
-
afterPropertiesSet
Deprecated.- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
createLuceneQueryFactory
public org.apache.geode.cache.lucene.LuceneQueryFactory createLuceneQueryFactory()Deprecated.Creates an instance of theLuceneQueryFactory
to create and executeLucene queries
.- Returns:
- an instance of the
LuceneQueryFactory
to create and executeLucene queries
. - See Also:
-
LuceneQueryFactory
getLuceneService()
-
createLuceneQueryFactory
public org.apache.geode.cache.lucene.LuceneQueryFactory createLuceneQueryFactory(int resultLimit) Deprecated.Creates an instance of theLuceneQueryFactory
to create and executeLucene queries
.- Parameters:
resultLimit
- limit to the number of results returned by the query.- Returns:
- an instance of the
LuceneQueryFactory
to create and executeLucene queries
. - See Also:
-
LuceneQueryFactory
createLuceneQueryFactory(int, int)
-
createLuceneQueryFactory
public org.apache.geode.cache.lucene.LuceneQueryFactory createLuceneQueryFactory(int resultLimit, int pageSize) Deprecated.Creates an instance of theLuceneQueryFactory
to create and executeLucene queries
.- Parameters:
resultLimit
- limit to the number of results returned by the query.pageSize
- number of results appearing on a single page.- Returns:
- an instance of the
LuceneQueryFactory
to create and executeLucene queries
. - See Also:
-
resolveCache
protected org.apache.geode.cache.GemFireCache resolveCache()Deprecated.Resolves a reference to theGemFireCache
.- Returns:
- a reference to the single instance of the
GemFireCache
. - See Also:
-
CacheUtils.resolveGemFireCache()
GemFireCache
getCache()
-
resolveLuceneService
protected org.apache.geode.cache.lucene.LuceneService resolveLuceneService()Deprecated.Resolves theLuceneService
used by this data access object to perform Lucene queries.- Returns:
- a reference to the
GemFireCache
LuceneService
. - See Also:
-
resolveLuceneService
protected org.apache.geode.cache.lucene.LuceneService resolveLuceneService(org.apache.geode.cache.GemFireCache gemfireCache) Deprecated.Resolves theLuceneService
used by this data access object to perform Lucene queries.- Parameters:
gemfireCache
-GemFireCache
used to resolve theLuceneService
.- Returns:
- a reference to the
GemFireCache
LuceneService
. - Throws:
IllegalArgumentException
- ifGemFireCache
is null.- See Also:
-
LuceneService
GemFireCache
-
resolveIndexName
Deprecated.Resolves the name of theLuceneIndex
required in the Lucene data access, query operations when aLuceneIndex
is not specifically provided.- Returns:
- the name of the resolve
LuceneIndex
. - Throws:
IllegalStateException
- if the name of theLuceneIndex
cannot be resolved.- See Also:
-
LuceneIndex.getName()
getIndexName()
getLuceneIndex()
-
resolveRegionPath
Deprecated.Resolves the fully-qualified pathname of theRegion
to which the Lucene data access, query operations are performed and theLuceneIndex
is applied, when aregion path
is not specifically provided.- Returns:
- a
String
containing the fully-qualified pathname of theRegion
on which the Lucene data access, query operations are performed and theLuceneIndex
is applied. - Throws:
IllegalStateException
- if the fully-qualified pathname of theRegion
cannot be resolved.- See Also:
-
setCache
Deprecated.Sets a reference to theGemFireCache
.- Type Parameters:
T
-Class
type of theLuceneAccessor
.- Parameters:
gemfireCache
-GemFireCache
reference.- Returns:
- this
LuceneAccessor
. - See Also:
-
GemFireCache
-
getCache
protected org.apache.geode.cache.GemFireCache getCache()Deprecated.Returns a reference to theGemFireCache
.- Returns:
- a reference to the
GemFireCache
. - See Also:
-
GemFireCache
resolveCache()
-
setIndexName
Deprecated.Sets the name of theLuceneIndex
used in Lucene queries.- Type Parameters:
T
-Class
type of theLuceneAccessor
.- Parameters:
indexName
-String
containing the name of theLuceneIndex
.- Returns:
- this
LuceneAccessor
. - See Also:
-
getIndexName
Deprecated.Returns the name of theLuceneIndex
used in Lucene queries.- Returns:
- a
String
containing the name of theLuceneIndex
. - See Also:
-
setLuceneIndex
public <T extends LuceneAccessor> T setLuceneIndex(org.apache.geode.cache.lucene.LuceneIndex luceneIndex) Deprecated.Sets a reference to theLuceneIndex
used in Lucene queries.- Type Parameters:
T
-Class
type of theLuceneAccessor
.- Parameters:
luceneIndex
-LuceneIndex
used in Lucene data access, query operations.- Returns:
- this
LuceneAccessor
. - See Also:
-
LuceneIndex
setIndexName(String)
-
getLuceneIndex
public org.apache.geode.cache.lucene.LuceneIndex getLuceneIndex()Deprecated.Returns a reference to theLuceneIndex
used in Lucene queries.- Returns:
- a
LuceneIndex
used in Lucene data access, query operations. - See Also:
-
LuceneIndex
resolveIndexName()
getIndexName()
-
setLuceneService
public <T extends LuceneAccessor> T setLuceneService(org.apache.geode.cache.lucene.LuceneService luceneService) Deprecated.Sets a reference to theLuceneService
used to perform Lucene query data access operations.- Type Parameters:
T
-Class
type of theLuceneAccessor
.- Parameters:
luceneService
-LuceneService
used to perform Lucene queries.- Returns:
- this
LuceneAccessor
. - See Also:
-
LuceneService
-
getLuceneService
protected org.apache.geode.cache.lucene.LuceneService getLuceneService()Deprecated.Returns a reference to theLuceneService
used to perform Lucene query data access operations.- Returns:
- a reference to the
LuceneService
used to perform Lucene queries. - See Also:
-
LuceneService
-
setRegion
Deprecated.Sets a reference to theRegion
used to specify Lucene queries.- Type Parameters:
T
-Class
type of theLuceneAccessor
.- Parameters:
region
-Region
used to specify Lucene queries.- Returns:
- this
LuceneAccessor
. - See Also:
-
Region
setRegionPath(String)
-
getRegion
public org.apache.geode.cache.Region<?,?> getRegion()Deprecated.Returns a reference to theRegion
used to specify Lucene queries.- Returns:
- a
Region
used to specify Lucene queries. - See Also:
-
setRegionPath
Deprecated.Sets a fully-qualified pathname to theRegion
used to specify Lucene queries.- Type Parameters:
T
-Class
type of theLuceneAccessor
.- Parameters:
regionPath
-String
containing the fully-qualified pathname to theRegion
used to specify Lucene queries.- Returns:
- this
LuceneAccessor
. - See Also:
-
getRegionPath
Deprecated.Returns a fully-qualified pathname to theRegion
used to specify Lucene queries.- Returns:
- a
String
containing the fully-qualified pathname to theRegion
used to specify Lucene queries. - See Also:
-
doFind
protected <T> T doFind(LuceneAccessor.LuceneQueryExecutor<T> queryExecutor, Object query, String regionPath, String indexName) Deprecated.
-