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 short
MAX_TIME_ZONE_KEY
static TimeZoneKey
UTC_KEY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getId()
short
getKey()
static TimeZoneKey
getTimeZoneKey(short timeZoneKey)
static TimeZoneKey
getTimeZoneKey(String zoneId)
static TimeZoneKey
getTimeZoneKeyForOffset(long offsetMinutes)
static Set<TimeZoneKey>
getTimeZoneKeys()
int
hashCode()
static boolean
isUtcZoneId(String zoneId)
String
toString()
-
-
-
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)
-
-