Class LegacyTimestampTypeInfo
java.lang.Object
org.apache.flink.api.common.typeinfo.TypeInformation<T>
org.apache.flink.api.common.typeinfo.SqlTimeTypeInfo<Timestamp>
org.apache.flink.table.runtime.typeutils.LegacyTimestampTypeInfo
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.typeinfo.AtomicType<Timestamp>
public class LegacyTimestampTypeInfo
extends org.apache.flink.api.common.typeinfo.SqlTimeTypeInfo<Timestamp>
TypeInformation for Timestamp.
The difference between Types.SQL_TIMESTAMP is this TypeInformation holds a precision Reminder: Conversion from DateType 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:
-
Field Summary
Fields inherited from class org.apache.flink.api.common.typeinfo.SqlTimeTypeInfo
DATE, TIME, TIMESTAMP -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.flink.api.common.typeinfo.SqlTimeTypeInfo
canEqual, createComparator, createSerializer, getArity, getInfoFor, getTotalFields, getTypeClass, isBasicType, isKeyType, isTupleTypeMethods inherited from class org.apache.flink.api.common.typeinfo.TypeInformation
getGenericParameters, isSortKeyType, of, of
-
Constructor Details
-
LegacyTimestampTypeInfo
public LegacyTimestampTypeInfo(int precision)
-
-
Method Details
-
equals
- Overrides:
equalsin classorg.apache.flink.api.common.typeinfo.SqlTimeTypeInfo<Timestamp>
-
toString
- Overrides:
toStringin classorg.apache.flink.api.common.typeinfo.SqlTimeTypeInfo<Timestamp>
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.apache.flink.api.common.typeinfo.SqlTimeTypeInfo<Timestamp>
-
getPrecision
public int getPrecision()
-