Class TimestampWithTimeZoneType
java.lang.Object
io.trino.spi.type.AbstractType
io.trino.spi.type.TimestampWithTimeZoneType
- All Implemented Interfaces:
FixedWidthType,Type
public abstract sealed class TimestampWithTimeZoneType
extends AbstractType
implements FixedWidthType
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.spi.type.Type
Type.Range -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final TimestampWithTimeZoneTypestatic final TimestampWithTimeZoneTypestatic final TimestampWithTimeZoneTypestatic final TimestampWithTimeZoneTypestatic final TimestampWithTimeZoneType -
Method Summary
Modifier and TypeMethodDescriptionstatic TimestampWithTimeZoneTypecreateTimestampWithTimeZoneType(int precision) final intfinal booleanTrue if the type supports equalTo and hash.final booleanTrue if the type supports compareTo.final booleanisShort()Methods inherited from class io.trino.spi.type.AbstractType
equals, getBoolean, getDisplayName, getDouble, getJavaType, getLong, getObject, getSlice, getTypeParameters, getTypeSignature, getValueBlockType, hashCode, toString, writeBoolean, writeDouble, writeLong, writeObject, writeSlice, writeSliceMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.trino.spi.type.FixedWidthType
createBlockBuilder, createFixedSizeBlockBuilder, getFixedSize, getFlatVariableWidthSize, isFlatVariableWidth, relocateFlatVariableWidthOffsetsMethods inherited from interface io.trino.spi.type.Type
appendTo, createBlockBuilder, createNullBlock, getBaseName, getBoolean, getDiscreteValues, getDisplayName, getDouble, getFlatFixedSize, getJavaType, getLong, getNextValue, getObject, getObjectValue, getPreviousValue, getRange, getSlice, getTypeId, getTypeOperatorDeclaration, getTypeParameters, getTypeSignature, getValueBlockType, writeBoolean, writeDouble, writeLong, writeObject, writeSlice, writeSlice
-
Field Details
-
MAX_PRECISION
public static final int MAX_PRECISION- See Also:
-
MAX_SHORT_PRECISION
public static final int MAX_SHORT_PRECISION- See Also:
-
DEFAULT_PRECISION
public static final int DEFAULT_PRECISION- See Also:
-
TIMESTAMP_TZ_SECONDS
-
TIMESTAMP_TZ_MILLIS
-
TIMESTAMP_TZ_MICROS
-
TIMESTAMP_TZ_NANOS
-
TIMESTAMP_TZ_PICOS
-
-
Method Details
-
createTimestampWithTimeZoneType
-
getPrecision
public final int getPrecision() -
isShort
public final boolean isShort() -
isComparable
public final boolean isComparable()Description copied from interface:TypeTrue if the type supports equalTo and hash.- Specified by:
isComparablein interfaceType- Overrides:
isComparablein classAbstractType
-
isOrderable
public final boolean isOrderable()Description copied from interface:TypeTrue if the type supports compareTo.- Specified by:
isOrderablein interfaceType- Overrides:
isOrderablein classAbstractType
-