Class Types.TimestampType

All Implemented Interfaces:
Type
Enclosing class:
Types

public static class Types.TimestampType extends Type.DateTimeType
The timestamp type in Gravitino.
  • Method Details

    • withoutTimeZone

      public static Types.TimestampType withoutTimeZone()
      Returns:
      A Types.TimestampType without time zone.
    • withTimeZone

      public static Types.TimestampType withTimeZone()
      Returns:
      A Types.TimestampType with time zone.
    • withoutTimeZone

      public static Types.TimestampType withoutTimeZone(int precision)
      Parameters:
      precision - The precision of the timestamp type.
      Returns:
      A Types.TimestampType with the given precision and without time zone.
    • withTimeZone

      public static Types.TimestampType withTimeZone(int precision)
      Parameters:
      precision - The precision of the timestamp type.
      Returns:
      A Types.TimestampType with the given precision and time zone.
    • hasTimeZone

      public boolean hasTimeZone()
      Returns:
      True if the timestamp type has time zone, false otherwise.
    • precision

      public int precision()
      Returns:
      The precision of the timestamp type.
    • hasPrecisionSet

      public boolean hasPrecisionSet()
      Returns:
      True if the timestamp type has precision set, false otherwise.
    • name

      public Type.Name name()
      Returns:
      The generic name of the type.
    • simpleString

      public String simpleString()
      Returns:
      The simple string representation of the timestamp type.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object