Class IndexingConfiguration

All Implemented Interfaces:
Matchable<IndexingConfiguration>, Updatable<IndexingConfiguration>

public class IndexingConfiguration extends ConfigurationElement<IndexingConfiguration>
Configures indexing of entries in the cache for searching.
  • Field Details

  • Method Details

    • enabled

      public boolean enabled()
      Determines if indexing is enabled for this cache configuration.
    • storage

      public IndexStorage storage()
    • startupMode

      public IndexStartupMode startupMode()
    • path

      public String path()
    • indexingMode

      public IndexingMode 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

      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.
    • indexedEntityTypes

      public Set<String> indexedEntityTypes()
      The set of fully qualified names of indexed entity types, either Java classes or protobuf type names. This configuration corresponds to the <indexed-entities> XML configuration element.
    • indexShareable

      @Deprecated(forRemoval=true, since="11.0") public final boolean indexShareable()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 11.0 with no replacement; to be removed in next major version.
      Check if the indexes can be shared. Currently no index can be shared, so it always returns false. sharing.
      Returns:
      always false, starting with version 11.0
    • reader

      public IndexReaderConfiguration reader()
    • writer

      public IndexWriterConfiguration writer()
    • sharding

      public IndexShardingConfiguration sharding()
    • isVolatile

      public boolean isVolatile()
      Does the index use a provider that does not persist upon restart?
    • toString

      public String toString()
      Overrides:
      toString in class ConfigurationElement<IndexingConfiguration>