Class TimestampType
java.lang.Object
io.trino.spi.type.AbstractType
io.trino.spi.type.TimestampType
- All Implemented Interfaces:
FixedWidthType,Type
A timestamp is to be interpreted as local date time without regards to any time zone.
- 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 TimestampTypestatic final TimestampTypestatic final TimestampTypestatic final TimestampTypestatic final TimestampType -
Method Summary
Modifier and TypeMethodDescriptionstatic TimestampTypecreateTimestampType(int precision) intbooleanTrue if the type supports equalTo and hash.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_SECONDS
-
TIMESTAMP_MILLIS
-
TIMESTAMP_MICROS
-
TIMESTAMP_NANOS
-
TIMESTAMP_PICOS
-
-
Method Details
-
createTimestampType
-
getPrecision
public int getPrecision() -
isShort
public final boolean isShort() -
isComparable
public boolean isComparable()Description copied from interface:TypeTrue if the type supports equalTo and hash.- Specified by:
isComparablein interfaceType- Overrides:
isComparablein classAbstractType
-
isOrderable
public boolean isOrderable()Description copied from interface:TypeTrue if the type supports compareTo.- Specified by:
isOrderablein interfaceType- Overrides:
isOrderablein classAbstractType
-