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.Noop
Returns 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: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 interfaceRoutingFields
-
addString
- Specified by:
addString
in interfaceRoutingFields
-
addIp
- Specified by:
addIp
in interfaceRoutingFields
-
addLong
- Specified by:
addLong
in interfaceRoutingFields
-
addUnsignedLong
- Specified by:
addUnsignedLong
in interfaceRoutingFields
-
addBoolean
- Specified by:
addBoolean
in interfaceRoutingFields
-