Package io.trino.spi.type
Interface FixedWidthType
- All Superinterfaces:
Type
- All Known Implementing Classes:
AbstractIntType,AbstractLongType,BigintType,BooleanType,DateType,DecimalType,DoubleType,IntegerType,RealType,SmallintType,TimestampType,TimestampWithTimeZoneType,TimeType,TimeWithTimeZoneType,TinyintType,UuidType
FixedWidthType is a type that has a fixed size for every value.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.spi.type.Type
Type.Range -
Method Summary
Modifier and TypeMethodDescriptioncreateFixedSizeBlockBuilder(int positionCount) Creates a block builder for this type sized to hold the specified number of positions.intGets the size of a value of this type in bytes.Methods inherited from interface io.trino.spi.type.Type
appendTo, createBlockBuilder, createBlockBuilder, getBaseName, getBoolean, getDiscreteValues, getDisplayName, getDouble, getJavaType, getLong, getNextValue, getObject, getObjectValue, getPreviousValue, getRange, getSlice, getTypeId, getTypeOperatorDeclaration, getTypeParameters, getTypeSignature, isComparable, isOrderable, writeBoolean, writeDouble, writeLong, writeObject, writeSlice, writeSlice
-
Method Details
-
getFixedSize
int getFixedSize()Gets the size of a value of this type in bytes. All values of a FixedWidthType are the same size. -
createFixedSizeBlockBuilder
Creates a block builder for this type sized to hold the specified number of positions.
-