Class TimeZoneKey


  • public final class TimeZoneKey
    extends Object
    Class for representing timezone to be used in encoding datetime value and timezone value to a single long Source: Presto TimeZoneKey
    • Field Detail

      • MAX_TIME_ZONE_KEY

        public static final short MAX_TIME_ZONE_KEY
    • Method Detail

      • getTimeZoneKey

        public static TimeZoneKey getTimeZoneKey​(short timeZoneKey)
      • getTimeZoneKeyForOffset

        public static TimeZoneKey getTimeZoneKeyForOffset​(long offsetMinutes)
      • getId

        public String getId()
      • getKey

        public short getKey()
      • hashCode

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

        public static boolean isUtcZoneId​(String zoneId)