Class LegacyInstantTypeInfo

java.lang.Object
org.apache.flink.api.common.typeinfo.TypeInformation<T>
org.apache.flink.api.common.typeinfo.BasicTypeInfo<Instant>
org.apache.flink.table.runtime.typeutils.LegacyInstantTypeInfo
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.typeinfo.AtomicType<Instant>

public class LegacyInstantTypeInfo extends org.apache.flink.api.common.typeinfo.BasicTypeInfo<Instant>
TypeInformation for Instant.

The different between Types.INSTANT is the TypeInformation holds a precision Reminder: Conversion from DataType 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.BasicTypeInfo

    BIG_DEC_TYPE_INFO, BIG_INT_TYPE_INFO, BOOLEAN_TYPE_INFO, BYTE_TYPE_INFO, CHAR_TYPE_INFO, DATE_TYPE_INFO, DOUBLE_TYPE_INFO, FLOAT_TYPE_INFO, INSTANT_TYPE_INFO, INT_TYPE_INFO, LONG_TYPE_INFO, SHORT_TYPE_INFO, STRING_TYPE_INFO, VOID_TYPE_INFO
  • Constructor Summary

    Constructors
    Constructor
    Description
    LegacyInstantTypeInfo(int precision)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    int
     
     

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

    canEqual, createComparator, createSerializer, getArity, getInfoFor, getTotalFields, getTypeClass, isBasicType, isKeyType, isTupleType, shouldAutocastTo

    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

    • LegacyInstantTypeInfo

      public LegacyInstantTypeInfo(int precision)
  • Method Details

    • equals

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

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

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

      public int getPrecision()