public class LegacyTimestampTypeInfo extends 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
DATE, TIME, TIMESTAMP
Constructor and Description |
---|
LegacyTimestampTypeInfo(int precision) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getPrecision() |
int |
hashCode() |
String |
toString() |
canEqual, createComparator, createSerializer, getArity, getInfoFor, getTotalFields, getTypeClass, isBasicType, isKeyType, isTupleType
getGenericParameters, isSortKeyType, of, of
public boolean equals(Object obj)
equals
in class SqlTimeTypeInfo<Timestamp>
public String toString()
toString
in class SqlTimeTypeInfo<Timestamp>
public int hashCode()
hashCode
in class SqlTimeTypeInfo<Timestamp>
public int getPrecision()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.