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
,AtomicType<LocalDateTime>
public class LegacyLocalDateTimeTypeInfo extends LocalTimeTypeInfo<LocalDateTime>
TypeInformation
forLocalDateTime
.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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.flink.api.common.typeinfo.LocalTimeTypeInfo
LOCAL_DATE, LOCAL_DATE_TIME, LOCAL_TIME
-
-
Constructor Summary
Constructors Constructor Description LegacyLocalDateTimeTypeInfo(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.LocalTimeTypeInfo
canEqual, createComparator, createSerializer, getArity, getInfoFor, getTotalFields, getTypeClass, isBasicType, isKeyType, isTupleType
-
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 classLocalTimeTypeInfo<LocalDateTime>
-
toString
public String toString()
- Overrides:
toString
in classLocalTimeTypeInfo<LocalDateTime>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classLocalTimeTypeInfo<LocalDateTime>
-
getPrecision
public int getPrecision()
-
-