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>
,BaseConfigurationInfo
,ConfigurationInfo
public class IndexingConfiguration extends AbstractTypedPropertiesConfiguration implements org.infinispan.commons.configuration.attributes.Matchable<IndexingConfiguration>, ConfigurationInfo
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
static org.infinispan.commons.configuration.attributes.AttributeDefinition<Map<Class<?>,Class<?>>>
KEY_TRANSFORMERS
-
Fields inherited from class org.infinispan.commons.configuration.AbstractTypedPropertiesConfiguration
attributes, PROPERTIES
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.infinispan.commons.configuration.attributes.AttributeSet
attributes()
boolean
autoConfig()
Determines if autoconfig is enabled for this IndexingConfiguration.org.infinispan.commons.configuration.elements.ElementDefinition
getElementDefinition()
Index
index()
Returns the indexing mode of this cache.Set<Class<?>>
indexedEntities()
boolean
indexShareable()
Check if the indexes can be shared.Map<Class<?>,Class<?>>
keyTransformers()
The currently configured key transformers.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
-
Methods inherited from interface org.infinispan.commons.configuration.ConfigurationInfo
subElements
-
-
-
-
Field Detail
-
INDEX
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Index> INDEX
-
AUTO_CONFIG
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> AUTO_CONFIG
-
KEY_TRANSFORMERS
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Map<Class<?>,Class<?>>> KEY_TRANSFORMERS
-
-
Method Detail
-
getElementDefinition
public org.infinispan.commons.configuration.elements.ElementDefinition getElementDefinition()
- Specified by:
getElementDefinition
in interfaceBaseConfigurationInfo
- Returns:
- the
ElementDefinition
of 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:
properties
in 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 Map<Class<?>,Class<?>> keyTransformers()
The currently configured key transformers.- Returns:
- a
Map
in which the map key is the key class and the value is the Transformer class.
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()
- Specified by:
attributes
in interfaceBaseConfigurationInfo
- Returns:
- the
AttributeSet
declared 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 String toString()
- Overrides:
toString
in classAbstractTypedPropertiesConfiguration
-
-