Class Setting.AffixKey

java.lang.Object
org.elasticsearch.common.settings.Setting.AffixKey
All Implemented Interfaces:
Setting.Key
Enclosing class:
Setting<T>

public static final class Setting.AffixKey extends Object implements Setting.Key
A key that allows for static pre and suffix. This is used for settings that have dynamic namespaces like for different accounts etc.
  • Method Details

    • match

      public boolean match(String key)
      Specified by:
      match in interface Setting.Key
    • exists

      public boolean exists(Set<String> keys, Set<String> exclusions)
      Description copied from interface: Setting.Key
      Returns true if and only if this key is present in the given settings instance (ignoring given exclusions).
      Specified by:
      exists in interface Setting.Key
      Parameters:
      keys - keys to check
      exclusions - exclusions to ignore
    • isFallback

      public boolean isFallback(String key)
      Does the key start with the fallback prefix?
    • toConcreteKey

      public String toConcreteKey(String missingPart)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object