Class SystemIndexDescriptor

java.lang.Object
org.elasticsearch.indices.SystemIndexDescriptor

public class SystemIndexDescriptor
extends java.lang.Object
A system index descriptor describes one or more system indices. It can match a number of indices using a pattern. For system indices that are managed externally to Elasticsearch, this is enough. For system indices that are managed internally to Elasticsearch, a descriptor can also include information for creating the system index, upgrading its mappings, and creating an alias.
  • Constructor Details

    • SystemIndexDescriptor

      public SystemIndexDescriptor​(java.lang.String indexPattern, java.lang.String description)
      Creates a descriptor for system indices matching the supplied pattern. These indices will not be managed by Elasticsearch internally.
      Parameters:
      indexPattern - The pattern of index names that this descriptor will be used for. Must start with a '.' character.
      description - The name of the plugin responsible for this system index.
  • Method Details

    • getIndexPattern

      public java.lang.String getIndexPattern()
      Returns:
      The pattern of index names that this descriptor will be used for.
    • getPrimaryIndex

      public java.lang.String getPrimaryIndex()
      Returns:
      The concrete name of an index being managed internally to Elasticsearch. Will be null for indices managed externally to Elasticsearch.
    • matchesIndexPattern

      public boolean matchesIndexPattern​(java.lang.String index)
      Checks whether an index name matches the system index name pattern for this descriptor.
      Parameters:
      index - The index name to be checked against the index pattern given at construction time.
      Returns:
      True if the name matches the pattern, false otherwise.
    • getDescription

      public java.lang.String getDescription()
      Returns:
      A short description of the purpose of this system index.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • getMappings

      public java.lang.String getMappings()
    • getSettings

      public Settings getSettings()
    • getAliasName

      public java.lang.String getAliasName()
    • getIndexFormat

      public int getIndexFormat()
    • getVersionMetaKey

      public java.lang.String getVersionMetaKey()
    • isAutomaticallyManaged

      public boolean isAutomaticallyManaged()
    • getOrigin

      public java.lang.String getOrigin()
    • builder

      public static SystemIndexDescriptor.Builder builder()