Package io.trino.spi.type
Class AbstractVariableWidthType
java.lang.Object
io.trino.spi.type.AbstractType
io.trino.spi.type.AbstractVariableWidthType
- All Implemented Interfaces:
Type,VariableWidthType
- Direct Known Subclasses:
CharType,HyperLogLogType,P4HyperLogLogType,QuantileDigestType,VarbinaryType,VarcharType
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.spi.type.Type
Type.Range -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractVariableWidthType(TypeSignature signature, Class<?> javaType) -
Method Summary
Modifier and TypeMethodDescriptioncreateBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries) Creates the preferred block builder for this type.createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries, int expectedBytesPerEntry) Creates the preferred block builder for this type.Methods inherited from class io.trino.spi.type.AbstractType
equals, getBoolean, getDisplayName, getDouble, getJavaType, getLong, getObject, getSlice, getTypeParameters, getTypeSignature, hashCode, isComparable, isOrderable, 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.Type
appendTo, 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
-
Field Details
-
EXPECTED_BYTES_PER_ENTRY
protected static final int EXPECTED_BYTES_PER_ENTRY- See Also:
-
-
Constructor Details
-
AbstractVariableWidthType
-
-
Method Details
-
createBlockBuilder
public BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries, int expectedBytesPerEntry) Description copied from interface:TypeCreates the preferred block builder for this type. This is the builder used to store values after an expression projection within the query.- Specified by:
createBlockBuilderin interfaceType
-
createBlockBuilder
Description copied from interface:TypeCreates the preferred block builder for this type. This is the builder used to store values after an expression projection within the query.- Specified by:
createBlockBuilderin interfaceType
-