Enum Class DataTypeConverter.DefaultConverter
java.lang.Object
java.lang.Enum<DataTypeConverter.DefaultConverter>
org.elasticsearch.xpack.esql.core.type.DataTypeConverter.DefaultConverter
- All Implemented Interfaces:
Serializable,Comparable<DataTypeConverter.DefaultConverter>,Constable,NamedWriteable,Writeable,Converter
- Enclosing class:
DataTypeConverter
public static enum DataTypeConverter.DefaultConverter
extends Enum<DataTypeConverter.DefaultConverter>
implements Converter
Reference to a data type conversion that can be serialized. Note that the position in the enum
is important because it is used for serialization.
-
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
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfromString(Function<String, Object> converter, String to) static Converterread(StreamInput in) Returns the enum constant of this class with the specified name.static DataTypeConverter.DefaultConverter[]values()Returns an array containing the constants of this enum class, in the order they are declared.voidwriteTo(StreamOutput out)
-
Enum Constant Details
-
IDENTITY
-
TO_NULL
-
DATETIME_TO_STRING
-
OTHER_TO_STRING
-
RATIONAL_TO_UNSIGNED_LONG
-
INTEGER_TO_UNSIGNED_LONG
-
STRING_TO_UNSIGNED_LONG
-
DATETIME_TO_UNSIGNED_LONG
-
RATIONAL_TO_LONG
-
INTEGER_TO_LONG
-
STRING_TO_LONG
-
DATETIME_TO_LONG
-
RATIONAL_TO_INT
-
INTEGER_TO_INT
-
BOOL_TO_INT
-
STRING_TO_INT
-
DATETIME_TO_INT
-
RATIONAL_TO_SHORT
-
INTEGER_TO_SHORT
-
BOOL_TO_SHORT
-
STRING_TO_SHORT
-
DATETIME_TO_SHORT
-
RATIONAL_TO_BYTE
-
INTEGER_TO_BYTE
-
BOOL_TO_BYTE
-
STRING_TO_BYTE
-
DATETIME_TO_BYTE
-
RATIONAL_TO_FLOAT
-
INTEGER_TO_FLOAT
-
BOOL_TO_FLOAT
-
STRING_TO_FLOAT
-
DATETIME_TO_FLOAT
-
RATIONAL_TO_DOUBLE
-
INTEGER_TO_DOUBLE
-
BOOL_TO_DOUBLE
-
STRING_TO_DOUBLE
-
DATETIME_TO_DOUBLE
-
RATIONAL_TO_DATETIME
-
INTEGER_TO_DATETIME
-
BOOL_TO_DATETIME
-
STRING_TO_DATETIME
-
NUMERIC_TO_BOOLEAN
-
STRING_TO_BOOLEAN
-
DATETIME_TO_BOOLEAN
-
BOOL_TO_UNSIGNED_LONG
-
BOOL_TO_LONG
-
STRING_TO_IP
-
STRING_TO_VERSION
-
-
Field Details
-
NAME
- See Also:
-
-
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
-
fromString
-
convert
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
read
- Throws:
IOException
-