Class IndexingConfiguration
- java.lang.Object
-
- org.infinispan.commons.configuration.AbstractTypedPropertiesConfiguration
-
- org.infinispan.configuration.cache.IndexingConfiguration
-
- All Implemented Interfaces:
Matchable<IndexingConfiguration>,BaseConfigurationInfo,ConfigurationInfo
public class IndexingConfiguration extends AbstractTypedPropertiesConfiguration implements Matchable<IndexingConfiguration>, ConfigurationInfo
Configures indexing of entries in the cache for searching.
-
-
Field Summary
Fields Modifier and Type Field Description static AttributeDefinition<java.lang.Boolean>AUTO_CONFIGstatic AttributeDefinition<Index>INDEXstatic AttributeDefinition<java.util.Set<java.lang.Class<?>>>INDEXED_ENTITIESstatic AttributeDefinition<java.util.Map<java.lang.Class<?>,java.lang.Class<?>>>KEY_TRANSFORMERS-
Fields inherited from class org.infinispan.commons.configuration.AbstractTypedPropertiesConfiguration
attributes, PROPERTIES
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AttributeSetattributes()booleanautoConfig()Determines if autoconfig is enabled for this IndexingConfiguration.booleanenabled()Deprecated.Useindex()insteadElementDefinitiongetElementDefinition()Indexindex()Returns the indexing mode of this cache.java.util.Set<java.lang.Class<?>>indexedEntities()booleanindexLocalOnly()Deprecated.Useindex()insteadbooleanindexShareable()Check if the indexes can be shared.java.util.Map<java.lang.Class<?>,java.lang.Class<?>>keyTransformers()The currently configured key transformers.TypedPropertiesproperties()These properties are passed directly to the embedded Hibernate Search engine, so for the complete and up to date documentation about available properties refer to the Hibernate Search reference of the version you're using with Infinispan Query.java.lang.StringtoString()-
Methods inherited from class org.infinispan.commons.configuration.AbstractTypedPropertiesConfiguration
attributeSet, equals, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.commons.configuration.ConfigurationInfo
subElements
-
-
-
-
Field Detail
-
INDEX
public static final AttributeDefinition<Index> INDEX
-
AUTO_CONFIG
public static final AttributeDefinition<java.lang.Boolean> AUTO_CONFIG
-
KEY_TRANSFORMERS
public static final AttributeDefinition<java.util.Map<java.lang.Class<?>,java.lang.Class<?>>> KEY_TRANSFORMERS
-
INDEXED_ENTITIES
public static final AttributeDefinition<java.util.Set<java.lang.Class<?>>> INDEXED_ENTITIES
-
-
Method Detail
-
enabled
@Deprecated public boolean enabled()
Deprecated.Useindex()insteadWhether indexing is enabled. False by default.
-
indexLocalOnly
@Deprecated public boolean indexLocalOnly()
Deprecated.Useindex()insteadIf true, only index changes made locally, ignoring remote changes. This is useful if indexes are shared across a cluster to prevent redundant indexing of updates.
-
getElementDefinition
public ElementDefinition getElementDefinition()
- Specified by:
getElementDefinitionin interfaceBaseConfigurationInfo- Returns:
- the
ElementDefinitionof the configuration.
-
properties
public TypedProperties properties()
These properties are passed directly to the embedded Hibernate Search engine, so for the complete and up to date documentation about available properties refer to the Hibernate Search reference of the version you're using with Infinispan Query.
- Overrides:
propertiesin classAbstractTypedPropertiesConfiguration- See Also:
- Hibernate Search
-
index
public Index index()
Returns the indexing mode of this cache.
-
autoConfig
public boolean autoConfig()
Determines if autoconfig is enabled for this IndexingConfiguration.
-
keyTransformers
public java.util.Map<java.lang.Class<?>,java.lang.Class<?>> keyTransformers()
The currently configured key transformers.- Returns:
- a
Mapin which the map key is the key class and the value is the Transformer class.
-
indexedEntities
public java.util.Set<java.lang.Class<?>> indexedEntities()
-
attributes
public AttributeSet attributes()
- Specified by:
attributesin interfaceBaseConfigurationInfo- Returns:
- the
AttributeSetdeclared by the configuration.
-
indexShareable
public boolean indexShareable()
Check if the indexes can be shared. Currently only "ram" based indexes don't allow any sort of sharing.- Returns:
- false if the index is ram only and thus not shared
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractTypedPropertiesConfiguration
-
-