Class DateType
java.lang.Object
io.trino.spi.type.AbstractType
io.trino.spi.type.AbstractIntType
io.trino.spi.type.DateType
- All Implemented Interfaces:
FixedWidthType,Type
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.spi.type.Type
Type.Range -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleangetNextValue(Object object) Returns the minimum value that compares greater thanvalue.getObjectValue(ConnectorSession session, Block block, int position) Gets an object representation of the type value in theblockposition.getPreviousValue(Object object) Returns the maximum value that compares less thanvalue.getRange()Return the range of possible values for this type, if available.inthashCode()Methods inherited from class io.trino.spi.type.AbstractIntType
appendTo, checkValueValid, createBlockBuilder, createFixedSizeBlockBuilder, getFixedSize, getFlatFixedSize, getInt, getLong, getTypeOperatorDeclaration, isComparable, isOrderable, writeInt, writeLongMethods inherited from class io.trino.spi.type.AbstractType
getBoolean, getDisplayName, getDouble, getJavaType, getObject, getSlice, getTypeParameters, getTypeSignature, getValueBlockType, toString, writeBoolean, writeDouble, 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, getFlatVariableWidthSize, isFlatVariableWidth, relocateFlatVariableWidthOffsetsMethods inherited from interface io.trino.spi.type.Type
createNullBlock, getBaseName, getBoolean, getDiscreteValues, getDisplayName, getDouble, getJavaType, getObject, getSlice, getTypeId, getTypeParameters, getTypeSignature, getValueBlockType, writeBoolean, writeDouble, writeObject, writeSlice, writeSlice
-
Field Details
-
DATE
-
-
Method Details
-
getObjectValue
Description copied from interface:TypeGets an object representation of the type value in theblockposition. This is the value returned to the user via the REST endpoint and therefore must be JSON serializable. -
getRange
Description copied from interface:TypeReturn the range of possible values for this type, if available.The type of the values must match
Type.getJavaType() -
getPreviousValue
Description copied from interface:TypeReturns the maximum value that compares less thanvalue.The type of the value must match
Type.getJavaType(). -
getNextValue
Description copied from interface:TypeReturns the minimum value that compares greater thanvalue.The type of the value must match
Type.getJavaType(). -
equals
- Overrides:
equalsin classAbstractType
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractType
-