Enum Class ValueType
- All Implemented Interfaces:
Serializable
,Comparable<ValueType>
,Constable
,Writeable
Deprecated.
-
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.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseField
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Deprecated.boolean
Deprecated.This is a bit of a hack to mirror the oldValueType
behavior, which would allow a rough compatibility between types.boolean
Deprecated.static ValueType
lenientParse
(String type) Deprecated.static ValueType
Deprecated.toString()
Deprecated.static ValueType
Deprecated.Returns the enum constant of this class with the specified name.static ValueType[]
values()
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.void
writeTo
(StreamOutput out) Deprecated.Write this into the StreamOutput.
-
Enum Constant Details
-
STRING
Deprecated. -
LONG
Deprecated. -
DOUBLE
Deprecated. -
NUMBER
Deprecated. -
DATE
Deprecated. -
IP
Deprecated. -
NUMERIC
Deprecated. -
GEOPOINT
Deprecated. -
BOOLEAN
Deprecated. -
RANGE
Deprecated.
-
-
Field Details
-
VALUE_TYPE
public static final org.elasticsearch.xcontent.ParseField VALUE_TYPEDeprecated.
-
-
Method Details
-
values
Deprecated.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
Deprecated.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
-
getPreferredName
Deprecated. -
getValuesSourceType
Deprecated. -
isA
Deprecated.This is a bit of a hack to mirror the oldValueType
behavior, which would allow a rough compatibility between types. This behavior is being phased out in the aggregations framework, in favor of explicitly listing supported types, but we haven't gotten to fixing composite yet.- Parameters:
valueType
- The value type the user suggested- Returns:
- True iff the two value types are interchangeable
-
isNotA
Deprecated. -
defaultFormat
Deprecated. -
lenientParse
Deprecated. -
toString
Deprecated. -
readFromStream
Deprecated.- Throws:
IOException
-
writeTo
Deprecated.Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
ValuesSourceType
, so new uses or entries to the enum are discouraged. There is currently no migration path for existing uses, notably parsing user value type hints and Composite aggregation, should continue to use this for now. Most importantly DO NOT ADD NEW PLACES WE SERIALIZE THIS ENUM!