Class IndexingConfiguration
java.lang.Object
org.infinispan.commons.configuration.attributes.ConfigurationElement<IndexingConfiguration>
org.infinispan.configuration.cache.IndexingConfiguration
- All Implemented Interfaces:
org.infinispan.commons.configuration.attributes.Matchable<IndexingConfiguration>, org.infinispan.commons.configuration.attributes.Updatable<IndexingConfiguration>
public class IndexingConfiguration
extends org.infinispan.commons.configuration.attributes.ConfigurationElement<IndexingConfiguration>
Configures indexing of entries in the cache for searching.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> static final org.infinispan.commons.configuration.attributes.AttributeDefinition<IndexingMode> static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Map<Class<?>, Class<?>>> static final org.infinispan.commons.configuration.attributes.AttributeDefinition<String> static final org.infinispan.commons.configuration.attributes.AttributeDefinition<IndexStartupMode> static final org.infinispan.commons.configuration.attributes.AttributeDefinition<IndexStorage> static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> Fields inherited from class org.infinispan.commons.configuration.attributes.ConfigurationElement
attributes, CHILDLESS, children, element, repeated -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Determines if indexing is enabled for this cache configuration.The set of fully qualified names of indexed entity types, either Java classes or protobuf type names.Affects how cache operations will be propagated to the indexes.booleanDoes the index use a provider that does not persist upon restart?The currently configured key transformers.path()reader()sharding()storage()toString()booleanWhether true, the indexes will be defined on the Java indexed entities accessible from the class path of the server VM.writer()Methods inherited from class org.infinispan.commons.configuration.attributes.ConfigurationElement
attributes, child, children, children, elementName, equals, extractAttributes, findAttribute, hashCode, isModified, list, matches, matches, matches, update, update, update, validateUpdate, validateUpdate, validateUpdate, write
-
Field Details
-
ENABLED
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> ENABLED -
KEY_TRANSFORMERS
-
INDEXED_ENTITIES
-
STORAGE
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<IndexStorage> STORAGE -
STARTUP_MODE
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<IndexStartupMode> STARTUP_MODE -
PATH
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<String> PATH -
INDEXING_MODE
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<IndexingMode> INDEXING_MODE -
USE_JAVA_EMBEDDED_ENTITIES
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> USE_JAVA_EMBEDDED_ENTITIES
-
-
Method Details
-
enabled
public boolean enabled()Determines if indexing is enabled for this cache configuration. -
storage
-
startupMode
-
path
-
indexingMode
Affects how cache operations will be propagated to the indexes. By default,IndexingMode.AUTO.- Returns:
- If the auto-indexing is enabled
- See Also:
-
useJavaEmbeddedEntities
public boolean useJavaEmbeddedEntities()Whether true, the indexes will be defined on the Java indexed entities accessible from the class path of the server VM. Even if the cache is Protobuf encoded and the indexes are run in server mode.Useful in case we want to run embedded queries from a server task, in the case the cache is Protobuf encoded. By default, false.
- Returns:
- useJavaEmbeddedEntities
-
keyTransformers
-
indexedEntityTypes
-
reader
-
writer
-
sharding
-
isVolatile
public boolean isVolatile()Does the index use a provider that does not persist upon restart? -
toString
- Overrides:
toStringin classorg.infinispan.commons.configuration.attributes.ConfigurationElement<IndexingConfiguration>
-