Package net.hydromatic.morel.foreign
Enum Converters.FieldConverter
- All Implemented Interfaces:
Serializable,Comparable<Converters.FieldConverter>,java.lang.constant.Constable
- Enclosing class:
Converters
Converts a field from Calcite to Morel format.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ObjectconvertFrom(Object sourceValue) Given a Calcite row, returns the value of this field in SML format.(package private) static Converters.FieldConvertertoType(org.apache.calcite.rel.type.RelDataType type) static Converters.FieldConverterReturns the enum constant of this type with the specified name.static Converters.FieldConverter[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FROM_BOOLEAN
-
FROM_INTEGER
-
FROM_FLOAT
-
FROM_DATE
-
FROM_TIME
-
FROM_TIMESTAMP
-
FROM_STRING
-
-
Field Details
-
mlType
-
-
Constructor Details
-
FieldConverter
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
convertFrom
Given a Calcite row, returns the value of this field in SML format. -
toType
-