Class RealType
java.lang.Object
io.trino.spi.type.AbstractType
io.trino.spi.type.AbstractIntType
io.trino.spi.type.RealType
- 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 TypeMethodDescriptionbooleanfloatgetObjectValue(ConnectorSession session, Block block, int position) Gets an object representation of the type value in theblockposition.getRange()Return the range of possible values for this type, if available.getTypeOperatorDeclaration(TypeOperators typeOperators) Gets the declared type specific operators for this type.inthashCode()voidwriteFloat(BlockBuilder blockBuilder, float value) voidwriteLong(BlockBuilder blockBuilder, long value) Writes the long value into theBlockBuilder.Methods inherited from class io.trino.spi.type.AbstractIntType
appendTo, checkValueValid, createBlockBuilder, createFixedSizeBlockBuilder, getFixedSize, getFlatFixedSize, getInt, getLong, isComparable, isOrderable, writeIntMethods 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, getNextValue, getObject, getPreviousValue, getSlice, getTypeId, getTypeParameters, getTypeSignature, getValueBlockType, writeBoolean, writeDouble, writeObject, writeSlice, writeSlice
-
Field Details
-
REAL
-
-
Method Details
-
getTypeOperatorDeclaration
Description copied from interface:TypeGets the declared type specific operators for this type.- Specified by:
getTypeOperatorDeclarationin interfaceType- Overrides:
getTypeOperatorDeclarationin classAbstractIntType
-
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. -
getFloat
-
writeLong
Description copied from interface:TypeWrites the long value into theBlockBuilder.- Specified by:
writeLongin interfaceType- Overrides:
writeLongin classAbstractIntType
-
writeFloat
-
equals
- Overrides:
equalsin classAbstractType
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractType
-
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()
-