Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Enum Class RoutingFields.Noop
- All Implemented Interfaces:
Serializable,Comparable<RoutingFields.Noop>,Constable,RoutingFields
- Enclosing interface:
RoutingFields
Noop implementation that doesn't perform validations on routing fields
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface org.elasticsearch.index.mapper.RoutingFields
RoutingFields.Noop -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionaddBoolean(String fieldName, boolean value) addIp(String fieldName, InetAddress value) 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.addUnsignedLong(String fieldName, long value) static RoutingFields.NoopReturns the enum constant of this class with the specified name.static RoutingFields.Noop[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
addString
Description copied from interface:RoutingFieldsThis 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:
addStringin interfaceRoutingFields
-
addString
- Specified by:
addStringin interfaceRoutingFields
-
addIp
- Specified by:
addIpin interfaceRoutingFields
-
addLong
- Specified by:
addLongin interfaceRoutingFields
-
addUnsignedLong
- Specified by:
addUnsignedLongin interfaceRoutingFields
-
addBoolean
- Specified by:
addBooleanin interfaceRoutingFields
-