Class TimeZoneKey

java.lang.Object
io.trino.spi.type.TimeZoneKey

public final class TimeZoneKey extends Object
  • Field Details

    • UTC_KEY

      public static final TimeZoneKey UTC_KEY
    • MAX_TIME_ZONE_KEY

      public static final short MAX_TIME_ZONE_KEY
  • Method Details

    • getTimeZoneKeys

      public static Set<TimeZoneKey> getTimeZoneKeys()
    • getTimeZoneKey

      public static TimeZoneKey getTimeZoneKey(short timeZoneKey)
    • getTimeZoneKey

      public static TimeZoneKey getTimeZoneKey(String zoneId)
      Throws:
      TimeZoneNotSupportedException - when zoneId does not identity a time zone
    • getTimeZoneKeyForOffset

      public static TimeZoneKey getTimeZoneKeyForOffset(long offsetMinutes)
    • getId

      public String getId()
    • getZoneId

      public ZoneId getZoneId()
    • getKey

      public short getKey()
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isUtcZoneId

      public static boolean isUtcZoneId(String zoneId)