Class 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:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.apache.flink.api.common.typeinfo.SqlTimeTypeInfo

        DATE, TIME, TIMESTAMP
    • Constructor Detail

      • LegacyTimestampTypeInfo

        public LegacyTimestampTypeInfo​(int precision)
    • Method Detail

      • 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()