public class IndexFactoryBean extends AbstractFactoryBeanSupport<org.apache.geode.cache.query.Index> implements InitializingBean
FactoryBean used to construct, configure and initialize Indexes
using a declarative approach.Region,
RegionService,
Index,
QueryService,
FactoryBean,
InitializingBean,
IndexFactoryBean.IndexWrapper,
IndexConfigurer,
AbstractFactoryBeanSupport| Modifier and Type | Class and Description |
|---|---|
protected static class |
IndexFactoryBean.IndexWrapper |
DEFAULT_SINGLETON| Constructor and Description |
|---|
IndexFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected void |
applyIndexConfigurers(String indexName,
IndexConfigurer... indexConfigurers)
Null-safe operation to apply the given array of
IndexConfigurers
to this IndexFactoryBean. |
protected void |
applyIndexConfigurers(String indexName,
Iterable<IndexConfigurer> indexConfigurers)
|
protected IndexConfigurer |
getCompositeRegionConfigurer()
Returns a reference to the Composite
IndexConfigurer used to apply additional configuration
to this IndexFactoryBean on Spring container initialization. |
org.apache.geode.cache.query.Index |
getObject() |
Class<?> |
getObjectType() |
protected boolean |
isDefine() |
void |
setCache(org.apache.geode.cache.RegionService cache)
Sets the underlying cache used for creating indexes.
|
void |
setDefine(boolean define)
Sets a boolean condition to indicate whether the Index declared and defined by this FactoryBean will only be
defined initially, or defined and created.
|
void |
setExpression(String expression) |
void |
setFrom(String from) |
void |
setImports(String imports) |
void |
setIndexConfigurers(IndexConfigurer... indexConfigurers)
Null-safe operation to set an array of
IndexConfigurers used to apply
additional configuration to this IndexFactoryBean when using Annotation-based configuration. |
void |
setIndexConfigurers(List<IndexConfigurer> indexConfigurers)
Null-safe operation to set an
Iterable of IndexConfigurers used to apply
additional configuration to this IndexFactoryBean when using Annotation-based configuration. |
void |
setName(String name) |
void |
setOverride(boolean override) |
void |
setQueryService(org.apache.geode.cache.query.QueryService service)
Sets the query service used for creating indexes.
|
void |
setType(IndexType indexType)
Sets the type of GemFire Index to create.
|
void |
setType(String type) |
getBeanClassLoader, getBeanFactory, getBeanName, getLog, isSingleton, logDebug, logDebug, logInfo, logInfo, newLog, setBeanClassLoader, setBeanFactory, setBeanNamepublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionprotected void applyIndexConfigurers(String indexName, IndexConfigurer... indexConfigurers)
IndexConfigurers
to this IndexFactoryBean.indexName - String containing the name of the Index.indexConfigurers - array of IndexConfigurers applied
to this IndexFactoryBean.RegionConfigurer,
applyIndexConfigurers(String, Iterable)protected void applyIndexConfigurers(String indexName, Iterable<IndexConfigurer> indexConfigurers)
indexName - String containing the name of the Index.indexConfigurers - Iterable of IndexConfigurers applied
to this IndexFactoryBean.RegionConfigurerprotected IndexConfigurer getCompositeRegionConfigurer()
IndexConfigurer used to apply additional configuration
to this IndexFactoryBean on Spring container initialization.IndexConfigurer.IndexConfigurerpublic org.apache.geode.cache.query.Index getObject()
getObject in interface FactoryBean<org.apache.geode.cache.query.Index>public Class<?> getObjectType()
getObjectType in interface FactoryBean<org.apache.geode.cache.query.Index>public void setCache(org.apache.geode.cache.RegionService cache)
cache - cache used for creating indexes.public void setQueryService(org.apache.geode.cache.query.QueryService service)
service - query service used for creating indexes.public void setName(String name)
name - the name to setpublic void setDefine(boolean define)
define - a boolean value indicating the define or define/create status. If true, the Index declared
by this FactoryBean will only be defined initially and subsequently created when this SmartLifecycle bean
receives an appropriate callback from the Spring container; if false, the Index will be created immediately.protected boolean isDefine()
public void setExpression(String expression)
expression - the expression to setpublic void setFrom(String from)
from - the from to setpublic void setImports(String imports)
imports - the imports to setpublic void setIndexConfigurers(IndexConfigurer... indexConfigurers)
IndexConfigurers used to apply
additional configuration to this IndexFactoryBean when using Annotation-based configuration.indexConfigurers - array of IndexConfigurers used to apply
additional configuration to this IndexFactoryBean.IndexConfigurer,
setIndexConfigurers(List)public void setIndexConfigurers(List<IndexConfigurer> indexConfigurers)
Iterable of IndexConfigurers used to apply
additional configuration to this IndexFactoryBean when using Annotation-based configuration.indexConfigurers - Iterable of IndexConfigurers used to apply
additional configuration to this IndexFactoryBean.IndexConfigurerpublic void setOverride(boolean override)
override - the override to setpublic void setType(String type)
type - the type to setCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.