Class TimeZoneKey
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.data.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 Summary
Fields Modifier and Type Field Description static shortMAX_TIME_ZONE_KEYstatic TimeZoneKeyUTC_KEY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetId()shortgetKey()static TimeZoneKeygetTimeZoneKey(short timeZoneKey)static TimeZoneKeygetTimeZoneKey(String zoneId)static TimeZoneKeygetTimeZoneKeyForOffset(long offsetMinutes)static Set<TimeZoneKey>getTimeZoneKeys()inthashCode()static booleanisUtcZoneId(String zoneId)StringtoString()
-
-
-
Field Detail
-
UTC_KEY
public static final TimeZoneKey UTC_KEY
-
MAX_TIME_ZONE_KEY
public static final short MAX_TIME_ZONE_KEY
-
-
Method Detail
-
getTimeZoneKeys
public static Set<TimeZoneKey> getTimeZoneKeys()
-
getTimeZoneKey
public static TimeZoneKey getTimeZoneKey(short timeZoneKey)
-
getTimeZoneKey
public static TimeZoneKey getTimeZoneKey(String zoneId)
-
getTimeZoneKeyForOffset
public static TimeZoneKey getTimeZoneKeyForOffset(long offsetMinutes)
-
getId
public String getId()
-
getKey
public short getKey()
-
isUtcZoneId
public static boolean isUtcZoneId(String zoneId)
-
-