Class IndexingConfiguration
- java.lang.Object
-
- org.infinispan.commons.configuration.AbstractTypedPropertiesConfiguration
-
- org.infinispan.configuration.cache.IndexingConfiguration
-
- All Implemented Interfaces:
org.infinispan.commons.configuration.attributes.Matchable<IndexingConfiguration>
public class IndexingConfiguration extends org.infinispan.commons.configuration.AbstractTypedPropertiesConfiguration implements org.infinispan.commons.configuration.attributes.Matchable<IndexingConfiguration>
Configures indexing of entries in the cache for searching.
-
-
Field Summary
Fields Modifier and Type Field Description static org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>
AUTO_CONFIG
static org.infinispan.commons.configuration.attributes.AttributeDefinition<Index>
INDEX
static org.infinispan.commons.configuration.attributes.AttributeDefinition<Set<Class<?>>>
INDEXED_ENTITIES
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.infinispan.commons.configuration.attributes.AttributeSet
attributes()
boolean
autoConfig()
Determines if autoconfig is enabled for this IndexingConfigurationboolean
enabled()
Deprecated.Useindex()
insteadIndex
index()
Returns the indexing mode of this cache.Set<Class<?>>
indexedEntities()
boolean
indexLocalOnly()
Deprecated.Useindex()
insteadboolean
indexShareable()
Check if the indexes can be shared.org.infinispan.commons.util.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.String
toString()
-
Methods inherited from class org.infinispan.commons.configuration.AbstractTypedPropertiesConfiguration
attributeSet, equals, hashCode
-
-
-
-
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.
-
properties
public org.infinispan.commons.util.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:
properties
in classorg.infinispan.commons.configuration.AbstractTypedPropertiesConfiguration
- 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
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()
-
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 String toString()
- Overrides:
toString
in classorg.infinispan.commons.configuration.AbstractTypedPropertiesConfiguration
-
-