Spring Data for VMware GemFire
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:
-
GemFireCacheRegionLuceneIndexLuceneIndexFactoryLuceneServiceLuceneServiceProviderAnalyzerDisposableBeanFactoryBeanInitializingBeanIndexConfigurerAbstractFactoryBeanSupport
-
Field Summary
FieldsFields inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
DEFAULT_SINGLETONFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.protected voidapplyIndexConfigurers(String indexName, Iterable<IndexConfigurer> indexConfigurers) Deprecated.protected voidapplyIndexConfigurers(String indexName, IndexConfigurer... indexConfigurers) Deprecated.Applies the given array ofIndexConfigurersto thisLuceneIndexFactoryBean.protected org.apache.geode.cache.lucene.LuceneIndexcreateLuceneIndex(String indexName, String regionPath) Deprecated.Creates aLuceneIndexwith the givenindexNameon theGemFireCacheRegionidentified by the givenregionPath.voiddestroy()Deprecated.protected org.apache.geode.cache.GemFireCachegetCache()Deprecated.Returns a reference to theGemFireCache.protected IndexConfigurerDeprecated.Returns a reference to the CompositeIndexConfigurerused to apply additional configuration to thisLuceneIndexFactoryBeanon Spring container initialization.Deprecated.Returns aMapof application domain object field names toAnalyzersused in the construction of theLucene Indexesfor each field.Deprecated.Returns aListof application domain object fields to be indexed.protected StringDeprecated.Returns the name of theLuceneIndexas identified in theGemFireCache.Optional<org.apache.geode.cache.lucene.LuceneIndex>Deprecated.protected org.apache.geode.cache.lucene.LuceneSerializer<?>Deprecated.Returns a reference to theLuceneSerializerused to convertobjectsto Lucene documents for theLuceneIndexcreated by thisLuceneIndexFactoryBean.protected org.apache.geode.cache.lucene.LuceneServiceDeprecated.Returns a reference to theLuceneServiceused by thisFactoryBeanto create theLuceneIndex.org.apache.geode.cache.lucene.LuceneIndexDeprecated.Class<?>Deprecated.protected org.apache.geode.cache.Region<?,?> Deprecated.Returns a reference to theGemFireCacheRegionon which theLuceneIndexwill be created.protected StringDeprecated.Returns the fully-qualified pathname to theGemFireCacheRegionon which theLuceneIndexwill be created.protected booleanDeprecated.Determines whether theLuceneIndexwill be destroyed on shutdown.protected booleanisLuceneIndexDestroyable(org.apache.geode.cache.lucene.LuceneIndex luceneIndex) Deprecated.Determine whether the givenLuceneIndexcreated by thisFactoryBeanis destroyable.protected org.apache.geode.cache.lucene.LuceneIndexpostProcess(org.apache.geode.cache.lucene.LuceneIndex luceneIndex) Deprecated.Performs additional post processing to the newly createdLuceneIndex.protected org.apache.geode.cache.lucene.LuceneIndexFactorypostProcess(org.apache.geode.cache.lucene.LuceneIndexFactory luceneIndexFactory) Deprecated.Performs additional post processing to the newly createdLuceneIndexFactory.protected org.apache.geode.cache.GemFireCacheDeprecated.Resolves a reference to theGemFireCache.resolveFields(List<String> fields) Deprecated.Resolves theListof fields on the object to index.protected org.apache.geode.cache.lucene.LuceneIndexresolveLuceneIndex(String indexName, String regionPath) Deprecated.Attempts to resolve aLuceneIndexby the givenindexNamefirst then attempts to create theLuceneIndexwith the givenRegion path.protected org.apache.geode.cache.lucene.LuceneIndexFactoryDeprecated.Resolves the appropriateLuceneIndexFactoryfrom theLuceneService.protected org.apache.geode.cache.lucene.LuceneServiceDeprecated.Resolves theLuceneServiceused by thisFactoryBeanto create theLuceneIndex.protected org.apache.geode.cache.lucene.LuceneServiceresolveLuceneService(org.apache.geode.cache.GemFireCache gemfireCache) Deprecated.Resolves theLuceneServiceused by thisFactoryBeanto create theLuceneIndex.protected org.apache.geode.cache.Region<?,?> Deprecated.Attempts to resolve theGemFireCacheRegionon which theLuceneIndexwill be created.protected StringDeprecated.Resolves the fully-qualified pathname of theGemFireCacheRegionon which theLuceneIndexwill be created.voidsetBeanName(String name) Deprecated.Sets thebean nameassigned to thisFactoryBeanas declared in the Spring container.voidsetCache(org.apache.geode.cache.GemFireCache gemfireCache) Deprecated.Sets a reference to theGemFireCache.voidsetDestroy(boolean destroy) Deprecated.Sets whether to destroy theLuceneIndexon shutdown.voidsetFieldAnalyzers(Map<String, org.apache.lucene.analysis.Analyzer> fieldAnalyzers) Deprecated.Set aMapof application domain object field names toAnalyzersused in the construction of theLucene Indexesfor each field.voidDeprecated.Sets the application domain object fields to index.voidDeprecated.Sets the application domain object fields to index.voidsetIndexConfigurers(List<IndexConfigurer> indexConfigurers) Deprecated.Null-safe operation to set anIterableofIndexConfigurersused to apply additional configuration to thisLuceneIndexFactoryBeanwhen using Annotation-based configuration.voidsetIndexConfigurers(IndexConfigurer... indexConfigurers) Deprecated.Null-safe operation to set an array ofIndexConfigurersused to apply additional configuration to thisLuceneIndexFactoryBeanwhen using Annotation-based configuration.voidsetIndexName(String indexName) Deprecated.Sets the name of theLuceneIndexas identified in theGemFireCache.setLuceneIndex(org.apache.geode.cache.lucene.LuceneIndex luceneIndex) Deprecated.Sets the givenLuceneIndexas the index created by thisFactoryBean.voidsetLuceneSerializer(org.apache.geode.cache.lucene.LuceneSerializer<?> luceneSerializer) Deprecated.Configures a reference to theLuceneSerializerused to convertobjectsto Lucene documents for theLuceneIndexcreated by thisLuceneIndexFactoryBean.voidsetLuceneService(org.apache.geode.cache.lucene.LuceneService luceneService) Deprecated.Configures a reference to theLuceneServiceused by thisFactoryBeanto create theLuceneIndex.voidsetRegion(org.apache.geode.cache.Region<?, ?> region) Deprecated.Sets a reference to theGemFireCacheRegionon which theLuceneIndexwill be created.voidsetRegionPath(String pathname) Deprecated.Sets the fully-qualified pathname to theGemFireCacheRegionon which theLuceneIndexwill 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:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
applyIndexConfigurers
Deprecated.Applies the given array ofIndexConfigurersto thisLuceneIndexFactoryBean.- Parameters:
indexName-Stringcontaining the name of theLuceneIndex.indexConfigurers- array ofIndexConfigurersapplied to thisLuceneIndexFactoryBean.- See Also:
-
applyIndexConfigurers
Deprecated.- Parameters:
indexName-Stringcontaining the name of theLuceneIndex.indexConfigurers-IterableofIndexConfigurersapplied to thisLuceneIndexFactoryBean.- See Also:
-
createLuceneIndex
protected org.apache.geode.cache.lucene.LuceneIndex createLuceneIndex(String indexName, String regionPath) Deprecated.Creates aLuceneIndexwith the givenindexNameon theGemFireCacheRegionidentified by the givenregionPath.- Parameters:
indexName-Stringcontaining the name for theLuceneIndex.regionPath-Stringcontaining the fully-qualified pathname to theGemFireCacheRegion.- Returns:
- a new instance of
LuceneIndexwith the givenindexNameon 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-LuceneIndexFactoryto 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-LuceneIndexcreated 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 aLuceneIndexby the givenindexNamefirst then attempts to create theLuceneIndexwith the givenRegion path.- Parameters:
indexName-nameof theLuceneIndexto resolve.regionPath-Region pathon which theLuceneIndexis applied.- Returns:
- the resolved
LuceneIndexby the givenindexNameor the createdLuceneIndexwith the givenRegion pathif theLuceneIndexcould not be resolved byindexName. - See Also:
-
LuceneService.getIndex(String, String)createLuceneIndex(String, String)getLuceneIndex()
-
destroy
Deprecated.- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-
isLuceneIndexDestroyable
protected boolean isLuceneIndexDestroyable(org.apache.geode.cache.lucene.LuceneIndex luceneIndex) Deprecated.Determine whether the givenLuceneIndexcreated by thisFactoryBeanis destroyable.- Parameters:
luceneIndex-LuceneIndexsubject to destruction.- Returns:
- a boolean value indicating whether the given
LuceneIndexcreated by thisFactoryBeanis destroyable. - See Also:
-
LuceneIndexisDestroy()
-
getObject
Deprecated.- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<org.apache.geode.cache.lucene.LuceneIndex>- Throws:
Exception
-
getObjectType
Deprecated.- Specified by:
getObjectTypein 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()GemFireCachegetCache()
-
resolveFields
Deprecated.Resolves theListof fields on the object to index. -
resolveLuceneIndexFactory
protected org.apache.geode.cache.lucene.LuceneIndexFactory resolveLuceneIndexFactory()Deprecated.Resolves the appropriateLuceneIndexFactoryfrom theLuceneService.- Returns:
- a newly created instance of the
LuceneIndexFactoryfrom the resolvedLuceneService. - See Also:
-
resolveLuceneService
protected org.apache.geode.cache.lucene.LuceneService resolveLuceneService()Deprecated.Resolves theLuceneServiceused by thisFactoryBeanto create theLuceneIndex.- Returns:
- a reference to the
GemFireCache,LuceneService. - See Also:
-
BeanFactory.getBean(Class)LuceneServiceAbstractFactoryBeanSupport.getBeanFactory()getLuceneService()resolveCache()resolveLuceneService(GemFireCache)
-
resolveLuceneService
protected org.apache.geode.cache.lucene.LuceneService resolveLuceneService(org.apache.geode.cache.GemFireCache gemfireCache) Deprecated.Resolves theLuceneServiceused by thisFactoryBeanto create theLuceneIndex.- Parameters:
gemfireCache-GemFireCacheused to resolve theLuceneService.- Returns:
- a reference to the
GemFireCacheLuceneService. - Throws:
IllegalArgumentException- ifGemFireCacheis null.- See Also:
-
LuceneServiceGemFireCache
-
resolveRegion
protected org.apache.geode.cache.Region<?,?> resolveRegion()Deprecated.Attempts to resolve theGemFireCacheRegionon which theLuceneIndexwill be created.- Returns:
- a reference to the
GemFireCacheRegionon which heLuceneIndexwill be created. Returns null if theRegioncannot be resolved. - See Also:
-
RegionService.getRegion(String)RegionresolveCache()getRegionPath()
-
resolveRegionPath
Deprecated.Resolves the fully-qualified pathname of theGemFireCacheRegionon which theLuceneIndexwill be created.- Returns:
- a
Stringcontaining the fully-qualified pathname of theGemFireCacheRegionon which theLuceneIndexwill be created. - Throws:
IllegalStateException- if theRegionpathname could not resolved.- See Also:
-
setBeanName
Deprecated.Description copied from class:AbstractFactoryBeanSupportSets thebean nameassigned to thisFactoryBeanas declared in the Spring container.- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware- Overrides:
setBeanNamein classAbstractFactoryBeanSupport<org.apache.geode.cache.lucene.LuceneIndex>- Parameters:
name-bean nameassigned to thisFactoryBeanas 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-GemFireCachereference.- 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:
-
GemFireCacheresolveCache()
-
getCompositeIndexConfigurer
Deprecated.Returns a reference to the CompositeIndexConfigurerused to apply additional configuration to thisLuceneIndexFactoryBeanon Spring container initialization.- Returns:
- the Composite
IndexConfigurer. - See Also:
-
setDestroy
public void setDestroy(boolean destroy) Deprecated.Sets whether to destroy theLuceneIndexon shutdown.- Parameters:
destroy- boolean value indicating whether to destroy theLuceneIndexon shutdown.
-
isDestroy
protected boolean isDestroy()Deprecated.Determines whether theLuceneIndexwill be destroyed on shutdown.- Returns:
- a boolean value indicating whether the
LuceneIndexwill be destroyed on shutdown. - See Also:
-
DisposableBean.destroy()
-
setFieldAnalyzers
Deprecated.Set aMapof application domain object field names toAnalyzersused in the construction of theLucene Indexesfor each field. -
getFieldAnalyzers
Deprecated.Returns aMapof application domain object field names toAnalyzersused in the construction of theLucene Indexesfor each field.- Returns:
- a
Mapof fields names toAnalyzers. - See Also:
-
AnalyzerMapgetFields()
-
setFields
Deprecated.Sets the application domain object fields to index.- Parameters:
fields- array ofStringscontaining the names of the object fields ot index.- See Also:
-
setFields
Deprecated.Sets the application domain object fields to index. -
getFields
Deprecated.Returns aListof application domain object fields to be indexed.- Returns:
- a
Listof application domain object fields to be indexed. - See Also:
-
setIndexConfigurers
Deprecated.Null-safe operation to set an array ofIndexConfigurersused to apply additional configuration to thisLuceneIndexFactoryBeanwhen using Annotation-based configuration.- Parameters:
indexConfigurers- array ofIndexConfigurersused to apply additional configuration to thisLuceneIndexFactoryBean.- See Also:
-
setIndexConfigurers
Deprecated.Null-safe operation to set anIterableofIndexConfigurersused to apply additional configuration to thisLuceneIndexFactoryBeanwhen using Annotation-based configuration.- Parameters:
indexConfigurers-IterableofIndexConfigurersused to apply additional configuration to thisLuceneIndexFactoryBean.- See Also:
-
setIndexName
Deprecated.Sets the name of theLuceneIndexas identified in theGemFireCache.- Parameters:
indexName-Stringcontaining the name of theLuceneIndex.- See Also:
-
getIndexName
Deprecated.Returns the name of theLuceneIndexas identified in theGemFireCache.- Returns:
- a
Stringcontaining the name of theLuceneIndex. - Throws:
IllegalStateException- if theindexNamewas not specified.
-
getLuceneIndex
Deprecated.- Returns:
- an
Optionalreference to theLuceneIndexcreated by thisLuceneIndexFactoryBean. - See Also:
-
LuceneIndexOptional
-
setLuceneIndex
Deprecated.Sets the givenLuceneIndexas the index created by thisFactoryBean. This method is generally used for testing purposes only.- Parameters:
luceneIndex-LuceneIndexcreated by thisFactoryBean.- Returns:
- this
LuceneIndexFactoryBean. - See Also:
-
LuceneIndexFactoryBeanLuceneIndex
-
setLuceneSerializer
public void setLuceneSerializer(org.apache.geode.cache.lucene.LuceneSerializer<?> luceneSerializer) Deprecated.Configures a reference to theLuceneSerializerused to convertobjectsto Lucene documents for theLuceneIndexcreated by thisLuceneIndexFactoryBean.- Parameters:
luceneSerializer-LuceneSerializerused to convertobjectsto Lucene documents for theLuceneIndex.- See Also:
-
LuceneSerializer
-
getLuceneSerializer
protected org.apache.geode.cache.lucene.LuceneSerializer<?> getLuceneSerializer()Deprecated.Returns a reference to theLuceneSerializerused to convertobjectsto Lucene documents for theLuceneIndexcreated by thisLuceneIndexFactoryBean.- Returns:
- a
LuceneSerializerused to convertobjectsto Lucene documents for theLuceneIndex. - See Also:
-
LuceneSerializer
-
setLuceneService
public void setLuceneService(org.apache.geode.cache.lucene.LuceneService luceneService) Deprecated.Configures a reference to theLuceneServiceused by thisFactoryBeanto create theLuceneIndex.- Parameters:
luceneService-LuceneServiceused to create theLuceneIndex.- See Also:
-
LuceneService
-
getLuceneService
protected org.apache.geode.cache.lucene.LuceneService getLuceneService()Deprecated.Returns a reference to theLuceneServiceused by thisFactoryBeanto create theLuceneIndex.- Returns:
- a reference to the
LuceneServiceused to create theLuceneIndex. - See Also:
-
LuceneServiceresolveLuceneService()
-
setRegion
public void setRegion(org.apache.geode.cache.Region<?, ?> region) Deprecated.Sets a reference to theGemFireCacheRegionon which theLuceneIndexwill be created.- Parameters:
region-Regionon which theLuceneIndexwill be created.- See Also:
-
RegionsetRegionPath(String)
-
getRegion
protected org.apache.geode.cache.Region<?,?> getRegion()Deprecated.Returns a reference to theGemFireCacheRegionon which theLuceneIndexwill be created.- Returns:
- a reference to the
Regionon which theLuceneIndexwill be created. - See Also:
-
RegiongetRegionPath()resolveRegion()
-
setRegionPath
Deprecated.Sets the fully-qualified pathname to theGemFireCacheRegionon which theLuceneIndexwill be created.- Parameters:
pathname-Stringcontaining the fully-qualified pathname to theGemFireCacheRegionon which theLuceneIndexwill be created.- See Also:
-
getRegionPath
Deprecated.Returns the fully-qualified pathname to theGemFireCacheRegionon which theLuceneIndexwill be created.- Returns:
- a
Stringcontaining the fully-qualified pathname to theGemFireCacheRegionon which theLuceneIndexwill be created. - See Also:
-