Package io.trino.spi.type
Class LongTimestampWithTimeZone
java.lang.Object
io.trino.spi.type.LongTimestampWithTimeZone
- All Implemented Interfaces:
Comparable<LongTimestampWithTimeZone>
public final class LongTimestampWithTimeZone
extends Object
implements Comparable<LongTimestampWithTimeZone>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintbooleanstatic LongTimestampWithTimeZonefromEpochMillisAndFraction(long epochMillis, int picosOfMilli, short timeZoneKey) static LongTimestampWithTimeZonefromEpochMillisAndFraction(long epochMillis, int picosOfMilli, TimeZoneKey timeZoneKey) static LongTimestampWithTimeZonefromEpochSecondsAndFraction(long epochSecond, long fractionInPicos, TimeZoneKey timeZoneKey) longintshortinthashCode()toString()
-
Field Details
-
INSTANCE_SIZE
public static final int INSTANCE_SIZE
-
-
Method Details
-
fromEpochSecondsAndFraction
public static LongTimestampWithTimeZone fromEpochSecondsAndFraction(long epochSecond, long fractionInPicos, TimeZoneKey timeZoneKey) -
fromEpochMillisAndFraction
public static LongTimestampWithTimeZone fromEpochMillisAndFraction(long epochMillis, int picosOfMilli, TimeZoneKey timeZoneKey) -
fromEpochMillisAndFraction
public static LongTimestampWithTimeZone fromEpochMillisAndFraction(long epochMillis, int picosOfMilli, short timeZoneKey) -
getEpochMillis
public long getEpochMillis() -
getPicosOfMilli
public int getPicosOfMilli() -
getTimeZoneKey
public short getTimeZoneKey() -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<LongTimestampWithTimeZone>
-
toString
-