Enum Class RoutingFields.Noop

java.lang.Object
java.lang.Enum<RoutingFields.Noop>
org.elasticsearch.index.mapper.RoutingFields.Noop
All Implemented Interfaces:
Serializable, Comparable<RoutingFields.Noop>, Constable, RoutingFields
Enclosing interface:
RoutingFields

public static enum RoutingFields.Noop extends Enum<RoutingFields.Noop> implements RoutingFields
Noop implementation that doesn't perform validations on routing fields
  • Enum Constant Details

  • Method Details

    • values

      public static RoutingFields.Noop[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RoutingFields.Noop valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • addString

      public RoutingFields addString(String fieldName, org.apache.lucene.util.BytesRef utf8Value)
      Description copied from interface: RoutingFields
      This overloaded method tries to take advantage of the fact that the UTF-8 value is already computed in some cases when we want to collect routing fields, so we can save re-computing the UTF-8 encoding.
      Specified by:
      addString in interface RoutingFields
    • addString

      public RoutingFields addString(String fieldName, String value)
      Specified by:
      addString in interface RoutingFields
    • addIp

      public RoutingFields addIp(String fieldName, InetAddress value)
      Specified by:
      addIp in interface RoutingFields
    • addLong

      public RoutingFields addLong(String fieldName, long value)
      Specified by:
      addLong in interface RoutingFields
    • addUnsignedLong

      public RoutingFields addUnsignedLong(String fieldName, long value)
      Specified by:
      addUnsignedLong in interface RoutingFields
    • addBoolean

      public RoutingFields addBoolean(String fieldName, boolean value)
      Specified by:
      addBoolean in interface RoutingFields