Class IndexingConfiguration

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.infinispan.commons.configuration.attributes.AttributeDefinition<java.lang.Boolean> AUTO_CONFIG  
      static org.infinispan.commons.configuration.attributes.AttributeDefinition<Index> INDEX  
      static org.infinispan.commons.configuration.attributes.AttributeDefinition<java.util.Set<java.lang.Class<?>>> INDEXED_ENTITIES  
      static org.infinispan.commons.configuration.attributes.AttributeDefinition<java.util.Map<java.lang.Class<?>,​java.lang.Class<?>>> KEY_TRANSFORMERS  
    • 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<java.lang.Boolean> AUTO_CONFIG
      • KEY_TRANSFORMERS

        public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<java.util.Map<java.lang.Class<?>,​java.lang.Class<?>>> KEY_TRANSFORMERS
      • INDEXED_ENTITIES

        public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<java.util.Set<java.lang.Class<?>>> INDEXED_ENTITIES
    • Method Detail

      • getElementDefinition

        public org.infinispan.commons.configuration.elements.ElementDefinition getElementDefinition()
        Specified by:
        getElementDefinition in interface BaseConfigurationInfo
        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 class 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.
      • keyTransformers

        public java.util.Map<java.lang.Class<?>,​java.lang.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.
      • indexedEntities

        public java.util.Set<java.lang.Class<?>> indexedEntities()
      • attributes

        public org.infinispan.commons.configuration.attributes.AttributeSet attributes()
        Specified by:
        attributes in interface BaseConfigurationInfo
        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