Class TimestampType

java.lang.Object
io.trino.spi.type.AbstractType
io.trino.spi.type.TimestampType
All Implemented Interfaces:
FixedWidthType, Type

public abstract sealed class TimestampType extends AbstractType implements FixedWidthType
A timestamp is to be interpreted as local date time without regards to any time zone.
See Also:
  • ShortTimestampType
  • LongTimestampType
  • Field Details

  • Method Details

    • createTimestampType

      public static TimestampType createTimestampType(int precision)
    • getPrecision

      public int getPrecision()
    • isShort

      public final boolean isShort()
    • isComparable

      public boolean isComparable()
      Description copied from interface: Type
      True if the type supports equalTo and hash.
      Specified by:
      isComparable in interface Type
      Overrides:
      isComparable in class AbstractType
    • isOrderable

      public boolean isOrderable()
      Description copied from interface: Type
      True if the type supports compareTo.
      Specified by:
      isOrderable in interface Type
      Overrides:
      isOrderable in class AbstractType