Class DecimalType
java.lang.Object
io.trino.spi.type.AbstractType
io.trino.spi.type.DecimalType
- 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 int -
Method Summary
Modifier and TypeMethodDescriptionstatic DecimalTypestatic DecimalTypecreateDecimalType(int precision) static DecimalTypecreateDecimalType(int precision, int scale) intintgetScale()final booleanTrue if the type supports equalTo and hash.final booleanTrue if the type supports compareTo.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
-
DEFAULT_SCALE
public static final int DEFAULT_SCALE- See Also:
-
DEFAULT_PRECISION
public static final int DEFAULT_PRECISION- See Also:
-
-
Method Details
-
createDecimalType
-
createDecimalType
-
createDecimalType
-
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
-
getPrecision
public int getPrecision() -
getScale
public int getScale() -
isShort
public boolean isShort()
-