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

public abstract class AbstractVariableWidthType extends AbstractType implements VariableWidthType
  • Field Details

    • EXPECTED_BYTES_PER_ENTRY

      protected static final int EXPECTED_BYTES_PER_ENTRY
      See Also:
  • Constructor Details

    • AbstractVariableWidthType

      protected AbstractVariableWidthType(TypeSignature signature, Class<?> javaType)
  • Method Details

    • createBlockBuilder

      public BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries, int expectedBytesPerEntry)
      Description copied from interface: Type
      Creates the preferred block builder for this type. This is the builder used to store values after an expression projection within the query.
      Specified by:
      createBlockBuilder in interface Type
    • createBlockBuilder

      public BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries)
      Description copied from interface: Type
      Creates the preferred block builder for this type. This is the builder used to store values after an expression projection within the query.
      Specified by:
      createBlockBuilder in interface Type