Class LegacyLocalDateTimeTypeInfo
java.lang.Object
org.apache.flink.api.common.typeinfo.TypeInformation<T>
org.apache.flink.api.common.typeinfo.LocalTimeTypeInfo<LocalDateTime>
org.apache.flink.table.runtime.typeutils.LegacyLocalDateTimeTypeInfo
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.typeinfo.AtomicType<LocalDateTime>
public class LegacyLocalDateTimeTypeInfo
extends org.apache.flink.api.common.typeinfo.LocalTimeTypeInfo<LocalDateTime>
TypeInformation for LocalDateTime.
The difference between Types.LOCAL_DATE_TIME 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.LocalTimeTypeInfo
LOCAL_DATE, LOCAL_DATE_TIME, LOCAL_TIME -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.flink.api.common.typeinfo.LocalTimeTypeInfo
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
-
LegacyLocalDateTimeTypeInfo
public LegacyLocalDateTimeTypeInfo(int precision)
-
-
Method Details
-
equals
- Overrides:
equalsin classorg.apache.flink.api.common.typeinfo.LocalTimeTypeInfo<LocalDateTime>
-
toString
- Overrides:
toStringin classorg.apache.flink.api.common.typeinfo.LocalTimeTypeInfo<LocalDateTime>
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.apache.flink.api.common.typeinfo.LocalTimeTypeInfo<LocalDateTime>
-
getPrecision
public int getPrecision()
-