Class LegacyInstantTypeInfo
- java.lang.Object
-
- org.apache.flink.api.common.typeinfo.TypeInformation<T>
-
- org.apache.flink.api.common.typeinfo.BasicTypeInfo<Instant>
-
- org.apache.flink.table.runtime.typeutils.LegacyInstantTypeInfo
-
- All Implemented Interfaces:
Serializable
,AtomicType<Instant>
public class LegacyInstantTypeInfo extends BasicTypeInfo<Instant>
TypeInformation
forInstant
.The different between Types.INSTANT is the TypeInformation holds a precision Reminder: Conversion from DataType to TypeInformation (and back) exists in TableSourceUtil.computeIndexMapping, which should be fixed after we remove Legacy TypeInformation TODO: https://issues.apache.org/jira/browse/FLINK-14927
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.flink.api.common.typeinfo.BasicTypeInfo
BIG_DEC_TYPE_INFO, BIG_INT_TYPE_INFO, BOOLEAN_TYPE_INFO, BYTE_TYPE_INFO, CHAR_TYPE_INFO, DATE_TYPE_INFO, DOUBLE_TYPE_INFO, FLOAT_TYPE_INFO, INSTANT_TYPE_INFO, INT_TYPE_INFO, LONG_TYPE_INFO, SHORT_TYPE_INFO, STRING_TYPE_INFO, VOID_TYPE_INFO
-
-
Constructor Summary
Constructors Constructor Description LegacyInstantTypeInfo(int precision)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
getPrecision()
int
hashCode()
String
toString()
-
Methods inherited from class org.apache.flink.api.common.typeinfo.BasicTypeInfo
canEqual, createComparator, createSerializer, getArity, getInfoFor, getTotalFields, getTypeClass, isBasicType, isKeyType, isTupleType, shouldAutocastTo
-
Methods inherited from class org.apache.flink.api.common.typeinfo.TypeInformation
getGenericParameters, isSortKeyType, of, of
-
-
-
-
Method Detail
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classBasicTypeInfo<Instant>
-
toString
public String toString()
- Overrides:
toString
in classBasicTypeInfo<Instant>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBasicTypeInfo<Instant>
-
getPrecision
public int getPrecision()
-
-