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
    Constructor
    Description
    LegacyTimestampTypeInfo(int precision)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    int
     
     

    Methods inherited from class org.apache.flink.api.common.typeinfo.SqlTimeTypeInfo

    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LegacyTimestampTypeInfo

      public LegacyTimestampTypeInfo(int precision)
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class org.apache.flink.api.common.typeinfo.SqlTimeTypeInfo<Timestamp>
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.flink.api.common.typeinfo.SqlTimeTypeInfo<Timestamp>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.apache.flink.api.common.typeinfo.SqlTimeTypeInfo<Timestamp>
    • getPrecision

      public int getPrecision()