Class LuceneIndexFactoryBean
java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<org.apache.geode.cache.lucene.LuceneIndex>
org.springframework.data.gemfire.search.lucene.LuceneIndexFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.lucene.LuceneIndex>
,org.springframework.beans.factory.InitializingBean
public class LuceneIndexFactoryBean
extends AbstractFactoryBeanSupport<org.apache.geode.cache.lucene.LuceneIndex>
implements org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
Deprecated.
To be removed in GemFire 10 integration
Spring
FactoryBean
used to construct, configure and initialize Lucene Indexes
on application domain object fields.- Since:
- 1.1.0
- See Also:
-
GemFireCache
Region
LuceneIndex
LuceneIndexFactory
LuceneService
LuceneServiceProvider
Analyzer
DisposableBean
FactoryBean
InitializingBean
IndexConfigurer
AbstractFactoryBeanSupport
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
DEFAULT_SINGLETON
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.protected void
applyIndexConfigurers
(String indexName, Iterable<IndexConfigurer> indexConfigurers) Deprecated.protected void
applyIndexConfigurers
(String indexName, IndexConfigurer... indexConfigurers) Deprecated.Applies the given array ofIndexConfigurers
to thisLuceneIndexFactoryBean
.protected org.apache.geode.cache.lucene.LuceneIndex
createLuceneIndex
(String indexName, String regionPath) Deprecated.Creates aLuceneIndex
with the givenindexName
on theGemFireCache
Region
identified by the givenregionPath
.void
destroy()
Deprecated.protected org.apache.geode.cache.GemFireCache
getCache()
Deprecated.Returns a reference to theGemFireCache
.protected IndexConfigurer
Deprecated.Returns a reference to the CompositeIndexConfigurer
used to apply additional configuration to thisLuceneIndexFactoryBean
on Spring container initialization.Deprecated.Returns aMap
of application domain object field names toAnalyzers
used in the construction of theLucene Indexes
for each field.Deprecated.Returns aList
of application domain object fields to be indexed.protected String
Deprecated.Returns the name of theLuceneIndex
as identified in theGemFireCache
.Optional<org.apache.geode.cache.lucene.LuceneIndex>
Deprecated.protected org.apache.geode.cache.lucene.LuceneSerializer<?>
Deprecated.Returns a reference to theLuceneSerializer
used to convertobjects
to Lucene documents for theLuceneIndex
created by thisLuceneIndexFactoryBean
.protected org.apache.geode.cache.lucene.LuceneService
Deprecated.Returns a reference to theLuceneService
used by thisFactoryBean
to create theLuceneIndex
.org.apache.geode.cache.lucene.LuceneIndex
Deprecated.Class<?>
Deprecated.protected org.apache.geode.cache.Region<?,
?> Deprecated.Returns a reference to theGemFireCache
Region
on which theLuceneIndex
will be created.protected String
Deprecated.Returns the fully-qualified pathname to theGemFireCache
Region
on which theLuceneIndex
will be created.protected boolean
Deprecated.Determines whether theLuceneIndex
will be destroyed on shutdown.protected boolean
isLuceneIndexDestroyable
(org.apache.geode.cache.lucene.LuceneIndex luceneIndex) Deprecated.Determine whether the givenLuceneIndex
created by thisFactoryBean
is destroyable.protected org.apache.geode.cache.lucene.LuceneIndex
postProcess
(org.apache.geode.cache.lucene.LuceneIndex luceneIndex) Deprecated.Performs additional post processing to the newly createdLuceneIndex
.protected org.apache.geode.cache.lucene.LuceneIndexFactory
postProcess
(org.apache.geode.cache.lucene.LuceneIndexFactory luceneIndexFactory) Deprecated.Performs additional post processing to the newly createdLuceneIndexFactory
.protected org.apache.geode.cache.GemFireCache
Deprecated.Resolves a reference to theGemFireCache
.resolveFields
(List<String> fields) Deprecated.Resolves theList
of fields on the object to index.protected org.apache.geode.cache.lucene.LuceneIndex
resolveLuceneIndex
(String indexName, String regionPath) Deprecated.Attempts to resolve aLuceneIndex
by the givenindexName
first then attempts to create theLuceneIndex
with the givenRegion path
.protected org.apache.geode.cache.lucene.LuceneIndexFactory
Deprecated.Resolves the appropriateLuceneIndexFactory
from theLuceneService
.protected org.apache.geode.cache.lucene.LuceneService
Deprecated.Resolves theLuceneService
used by thisFactoryBean
to create theLuceneIndex
.protected org.apache.geode.cache.lucene.LuceneService
resolveLuceneService
(org.apache.geode.cache.GemFireCache gemfireCache) Deprecated.Resolves theLuceneService
used by thisFactoryBean
to create theLuceneIndex
.protected org.apache.geode.cache.Region<?,
?> Deprecated.Attempts to resolve theGemFireCache
Region
on which theLuceneIndex
will be created.protected String
Deprecated.Resolves the fully-qualified pathname of theGemFireCache
Region
on which theLuceneIndex
will be created.void
setBeanName
(String name) Deprecated.Sets thebean name
assigned to thisFactoryBean
as declared in the Spring container.void
setCache
(org.apache.geode.cache.GemFireCache gemfireCache) Deprecated.Sets a reference to theGemFireCache
.void
setDestroy
(boolean destroy) Deprecated.Sets whether to destroy theLuceneIndex
on shutdown.void
setFieldAnalyzers
(Map<String, org.apache.lucene.analysis.Analyzer> fieldAnalyzers) Deprecated.Set aMap
of application domain object field names toAnalyzers
used in the construction of theLucene Indexes
for each field.void
Deprecated.Sets the application domain object fields to index.void
Deprecated.Sets the application domain object fields to index.void
setIndexConfigurers
(List<IndexConfigurer> indexConfigurers) Deprecated.Null-safe operation to set anIterable
ofIndexConfigurers
used to apply additional configuration to thisLuceneIndexFactoryBean
when using Annotation-based configuration.void
setIndexConfigurers
(IndexConfigurer... indexConfigurers) Deprecated.Null-safe operation to set an array ofIndexConfigurers
used to apply additional configuration to thisLuceneIndexFactoryBean
when using Annotation-based configuration.void
setIndexName
(String indexName) Deprecated.Sets the name of theLuceneIndex
as identified in theGemFireCache
.setLuceneIndex
(org.apache.geode.cache.lucene.LuceneIndex luceneIndex) Deprecated.Sets the givenLuceneIndex
as the index created by thisFactoryBean
.void
setLuceneSerializer
(org.apache.geode.cache.lucene.LuceneSerializer<?> luceneSerializer) Deprecated.Configures a reference to theLuceneSerializer
used to convertobjects
to Lucene documents for theLuceneIndex
created by thisLuceneIndexFactoryBean
.void
setLuceneService
(org.apache.geode.cache.lucene.LuceneService luceneService) Deprecated.Configures a reference to theLuceneService
used by thisFactoryBean
to create theLuceneIndex
.void
setRegion
(org.apache.geode.cache.Region<?, ?> region) Deprecated.Sets a reference to theGemFireCache
Region
on which theLuceneIndex
will be created.void
setRegionPath
(String pathname) Deprecated.Sets the fully-qualified pathname to theGemFireCache
Region
on which theLuceneIndex
will be created.Methods inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
getBeanClassLoader, getBeanFactory, getBeanName, getLogger, getOptionalLogger, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLogger, setBeanClassLoader, setBeanFactory
-
Field Details
-
DEFAULT_DESTROY
protected static final boolean DEFAULT_DESTROYDeprecated.- See Also:
-
-
Constructor Details
-
LuceneIndexFactoryBean
public LuceneIndexFactoryBean()Deprecated.
-
-
Method Details
-
afterPropertiesSet
Deprecated.- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
applyIndexConfigurers
Deprecated.Applies the given array ofIndexConfigurers
to thisLuceneIndexFactoryBean
.- Parameters:
indexName
-String
containing the name of theLuceneIndex
.indexConfigurers
- array ofIndexConfigurers
applied to thisLuceneIndexFactoryBean
.- See Also:
-
applyIndexConfigurers
Deprecated.- Parameters:
indexName
-String
containing the name of theLuceneIndex
.indexConfigurers
-Iterable
ofIndexConfigurers
applied to thisLuceneIndexFactoryBean
.- See Also:
-
createLuceneIndex
protected org.apache.geode.cache.lucene.LuceneIndex createLuceneIndex(String indexName, String regionPath) Deprecated.Creates aLuceneIndex
with the givenindexName
on theGemFireCache
Region
identified by the givenregionPath
.- Parameters:
indexName
-String
containing the name for theLuceneIndex
.regionPath
-String
containing the fully-qualified pathname to theGemFireCache
Region
.- Returns:
- a new instance of
LuceneIndex
with the givenindexName
on the namedRegion
. - See Also:
-
LuceneService.createIndexFactory()
LuceneService.getIndex(String, String)
LuceneIndexFactory.create(String, String)
resolveLuceneService()
postProcess(LuceneIndexFactory)
getFieldAnalyzers()
getFields()
resolveFields(List)
-
postProcess
protected org.apache.geode.cache.lucene.LuceneIndexFactory postProcess(org.apache.geode.cache.lucene.LuceneIndexFactory luceneIndexFactory) Deprecated.Performs additional post processing to the newly createdLuceneIndexFactory
.- Parameters:
luceneIndexFactory
-LuceneIndexFactory
to post process.- Returns:
- the given
LuceneIndexFactory
. - See Also:
-
LuceneIndexFactory
-
postProcess
protected org.apache.geode.cache.lucene.LuceneIndex postProcess(org.apache.geode.cache.lucene.LuceneIndex luceneIndex) Deprecated.Performs additional post processing to the newly createdLuceneIndex
.- Parameters:
luceneIndex
-LuceneIndex
created by thisLuceneIndexFactoryBean
.- Returns:
- the given
LuceneIndex
. - See Also:
-
LuceneIndex
-
resolveLuceneIndex
protected org.apache.geode.cache.lucene.LuceneIndex resolveLuceneIndex(String indexName, String regionPath) Deprecated.Attempts to resolve aLuceneIndex
by the givenindexName
first then attempts to create theLuceneIndex
with the givenRegion path
.- Parameters:
indexName
-name
of theLuceneIndex
to resolve.regionPath
-Region path
on which theLuceneIndex
is applied.- Returns:
- the resolved
LuceneIndex
by the givenindexName
or the createdLuceneIndex
with the givenRegion path
if theLuceneIndex
could not be resolved byindexName
. - See Also:
-
LuceneService.getIndex(String, String)
createLuceneIndex(String, String)
getLuceneIndex()
-
destroy
Deprecated.- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
Exception
-
isLuceneIndexDestroyable
protected boolean isLuceneIndexDestroyable(org.apache.geode.cache.lucene.LuceneIndex luceneIndex) Deprecated.Determine whether the givenLuceneIndex
created by thisFactoryBean
is destroyable.- Parameters:
luceneIndex
-LuceneIndex
subject to destruction.- Returns:
- a boolean value indicating whether the given
LuceneIndex
created by thisFactoryBean
is destroyable. - See Also:
-
LuceneIndex
isDestroy()
-
getObject
Deprecated.- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<org.apache.geode.cache.lucene.LuceneIndex>
- Throws:
Exception
-
getObjectType
Deprecated.- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<org.apache.geode.cache.lucene.LuceneIndex>
-
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()
-
resolveFields
Deprecated.Resolves theList
of fields on the object to index. -
resolveLuceneIndexFactory
protected org.apache.geode.cache.lucene.LuceneIndexFactory resolveLuceneIndexFactory()Deprecated.Resolves the appropriateLuceneIndexFactory
from theLuceneService
.- Returns:
- a newly created instance of the
LuceneIndexFactory
from the resolvedLuceneService
. - See Also:
-
resolveLuceneService
protected org.apache.geode.cache.lucene.LuceneService resolveLuceneService()Deprecated.Resolves theLuceneService
used by thisFactoryBean
to create theLuceneIndex
.- Returns:
- a reference to the
GemFireCache
,LuceneService
. - See Also:
-
BeanFactory.getBean(Class)
LuceneService
AbstractFactoryBeanSupport.getBeanFactory()
getLuceneService()
resolveCache()
resolveLuceneService(GemFireCache)
-
resolveLuceneService
protected org.apache.geode.cache.lucene.LuceneService resolveLuceneService(org.apache.geode.cache.GemFireCache gemfireCache) Deprecated.Resolves theLuceneService
used by thisFactoryBean
to create theLuceneIndex
.- Parameters:
gemfireCache
-GemFireCache
used to resolve theLuceneService
.- Returns:
- a reference to the
GemFireCache
LuceneService
. - Throws:
IllegalArgumentException
- ifGemFireCache
is null.- See Also:
-
LuceneService
GemFireCache
-
resolveRegion
protected org.apache.geode.cache.Region<?,?> resolveRegion()Deprecated.Attempts to resolve theGemFireCache
Region
on which theLuceneIndex
will be created.- Returns:
- a reference to the
GemFireCache
Region
on which heLuceneIndex
will be created. Returns null if theRegion
cannot be resolved. - See Also:
-
RegionService.getRegion(String)
Region
resolveCache()
getRegionPath()
-
resolveRegionPath
Deprecated.Resolves the fully-qualified pathname of theGemFireCache
Region
on which theLuceneIndex
will be created.- Returns:
- a
String
containing the fully-qualified pathname of theGemFireCache
Region
on which theLuceneIndex
will be created. - Throws:
IllegalStateException
- if theRegion
pathname could not resolved.- See Also:
-
setBeanName
Deprecated.Description copied from class:AbstractFactoryBeanSupport
Sets thebean name
assigned to thisFactoryBean
as declared in the Spring container.- Specified by:
setBeanName
in interfaceorg.springframework.beans.factory.BeanNameAware
- Overrides:
setBeanName
in classAbstractFactoryBeanSupport<org.apache.geode.cache.lucene.LuceneIndex>
- Parameters:
name
-bean name
assigned to thisFactoryBean
as declared in the Spring container.- See Also:
-
BeanNameAware.setBeanName(String)
String
-
setCache
public void setCache(org.apache.geode.cache.GemFireCache gemfireCache) Deprecated.Sets a reference to theGemFireCache
.- Parameters:
gemfireCache
-GemFireCache
reference.- 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()
-
getCompositeIndexConfigurer
Deprecated.Returns a reference to the CompositeIndexConfigurer
used to apply additional configuration to thisLuceneIndexFactoryBean
on Spring container initialization.- Returns:
- the Composite
IndexConfigurer
. - See Also:
-
setDestroy
public void setDestroy(boolean destroy) Deprecated.Sets whether to destroy theLuceneIndex
on shutdown.- Parameters:
destroy
- boolean value indicating whether to destroy theLuceneIndex
on shutdown.
-
isDestroy
protected boolean isDestroy()Deprecated.Determines whether theLuceneIndex
will be destroyed on shutdown.- Returns:
- a boolean value indicating whether the
LuceneIndex
will be destroyed on shutdown. - See Also:
-
DisposableBean.destroy()
-
setFieldAnalyzers
Deprecated.Set aMap
of application domain object field names toAnalyzers
used in the construction of theLucene Indexes
for each field. -
getFieldAnalyzers
Deprecated.Returns aMap
of application domain object field names toAnalyzers
used in the construction of theLucene Indexes
for each field.- Returns:
- a
Map
of fields names toAnalyzers
. - See Also:
-
Analyzer
Map
getFields()
-
setFields
Deprecated.Sets the application domain object fields to index.- Parameters:
fields
- array ofStrings
containing the names of the object fields ot index.- See Also:
-
setFields
Deprecated.Sets the application domain object fields to index. -
getFields
Deprecated.Returns aList
of application domain object fields to be indexed.- Returns:
- a
List
of application domain object fields to be indexed. - See Also:
-
setIndexConfigurers
Deprecated.Null-safe operation to set an array ofIndexConfigurers
used to apply additional configuration to thisLuceneIndexFactoryBean
when using Annotation-based configuration.- Parameters:
indexConfigurers
- array ofIndexConfigurers
used to apply additional configuration to thisLuceneIndexFactoryBean
.- See Also:
-
setIndexConfigurers
Deprecated.Null-safe operation to set anIterable
ofIndexConfigurers
used to apply additional configuration to thisLuceneIndexFactoryBean
when using Annotation-based configuration.- Parameters:
indexConfigurers
-Iterable
ofIndexConfigurers
used to apply additional configuration to thisLuceneIndexFactoryBean
.- See Also:
-
setIndexName
Deprecated.Sets the name of theLuceneIndex
as identified in theGemFireCache
.- Parameters:
indexName
-String
containing the name of theLuceneIndex
.- See Also:
-
getIndexName
Deprecated.Returns the name of theLuceneIndex
as identified in theGemFireCache
.- Returns:
- a
String
containing the name of theLuceneIndex
. - Throws:
IllegalStateException
- if theindexName
was not specified.
-
getLuceneIndex
Deprecated.- Returns:
- an
Optional
reference to theLuceneIndex
created by thisLuceneIndexFactoryBean
. - See Also:
-
LuceneIndex
Optional
-
setLuceneIndex
Deprecated.Sets the givenLuceneIndex
as the index created by thisFactoryBean
. This method is generally used for testing purposes only.- Parameters:
luceneIndex
-LuceneIndex
created by thisFactoryBean
.- Returns:
- this
LuceneIndexFactoryBean
. - See Also:
-
LuceneIndexFactoryBean
LuceneIndex
-
setLuceneSerializer
public void setLuceneSerializer(org.apache.geode.cache.lucene.LuceneSerializer<?> luceneSerializer) Deprecated.Configures a reference to theLuceneSerializer
used to convertobjects
to Lucene documents for theLuceneIndex
created by thisLuceneIndexFactoryBean
.- Parameters:
luceneSerializer
-LuceneSerializer
used to convertobjects
to Lucene documents for theLuceneIndex
.- See Also:
-
LuceneSerializer
-
getLuceneSerializer
protected org.apache.geode.cache.lucene.LuceneSerializer<?> getLuceneSerializer()Deprecated.Returns a reference to theLuceneSerializer
used to convertobjects
to Lucene documents for theLuceneIndex
created by thisLuceneIndexFactoryBean
.- Returns:
- a
LuceneSerializer
used to convertobjects
to Lucene documents for theLuceneIndex
. - See Also:
-
LuceneSerializer
-
setLuceneService
public void setLuceneService(org.apache.geode.cache.lucene.LuceneService luceneService) Deprecated.Configures a reference to theLuceneService
used by thisFactoryBean
to create theLuceneIndex
.- Parameters:
luceneService
-LuceneService
used to create theLuceneIndex
.- See Also:
-
LuceneService
-
getLuceneService
protected org.apache.geode.cache.lucene.LuceneService getLuceneService()Deprecated.Returns a reference to theLuceneService
used by thisFactoryBean
to create theLuceneIndex
.- Returns:
- a reference to the
LuceneService
used to create theLuceneIndex
. - See Also:
-
LuceneService
resolveLuceneService()
-
setRegion
public void setRegion(org.apache.geode.cache.Region<?, ?> region) Deprecated.Sets a reference to theGemFireCache
Region
on which theLuceneIndex
will be created.- Parameters:
region
-Region
on which theLuceneIndex
will be created.- See Also:
-
Region
setRegionPath(String)
-
getRegion
protected org.apache.geode.cache.Region<?,?> getRegion()Deprecated.Returns a reference to theGemFireCache
Region
on which theLuceneIndex
will be created.- Returns:
- a reference to the
Region
on which theLuceneIndex
will be created. - See Also:
-
Region
getRegionPath()
resolveRegion()
-
setRegionPath
Deprecated.Sets the fully-qualified pathname to theGemFireCache
Region
on which theLuceneIndex
will be created.- Parameters:
pathname
-String
containing the fully-qualified pathname to theGemFireCache
Region
on which theLuceneIndex
will be created.- See Also:
-
getRegionPath
Deprecated.Returns the fully-qualified pathname to theGemFireCache
Region
on which theLuceneIndex
will be created.- Returns:
- a
String
containing the fully-qualified pathname to theGemFireCache
Region
on which theLuceneIndex
will be created. - See Also:
-