Class TimeWithTimeZoneType
java.lang.Object
io.trino.spi.type.AbstractType
io.trino.spi.type.TimeWithTimeZoneType
- All Implemented Interfaces:
FixedWidthType,Type
-
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 TimeWithTimeZoneTypestatic final TimeWithTimeZoneTypestatic final TimeWithTimeZoneTypestatic final TimeWithTimeZoneTypestatic final TimeWithTimeZoneType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTimeWithTimeZoneType(int precision, Class<?> javaType, Class<? extends ValueBlock> valueBlockType) -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeWithTimeZoneTypecreateTimeWithTimeZoneType(int precision) 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:
-
TIME_TZ_SECONDS
-
TIME_TZ_MILLIS
-
TIME_TZ_MICROS
-
TIME_TZ_NANOS
-
TIME_TZ_PICOS
-
-
Constructor Details
-
TimeWithTimeZoneType
protected TimeWithTimeZoneType(int precision, Class<?> javaType, Class<? extends ValueBlock> valueBlockType)
-
-
Method Details
-
createTimeWithTimeZoneType
-
getPrecision
public 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
-