Class QuantileDigestType

All Implemented Interfaces:
Type, VariableWidthType

public class QuantileDigestType extends AbstractVariableWidthType
  • Constructor Details

    • QuantileDigestType

      public QuantileDigestType(Type valueType)
  • Method Details

    • getSlice

      public io.airlift.slice.Slice getSlice(Block block, int position)
      Description copied from interface: Type
      Gets the value at the block position as a Slice.
      Specified by:
      getSlice in interface Type
      Overrides:
      getSlice in class AbstractType
    • writeSlice

      public void writeSlice(BlockBuilder blockBuilder, io.airlift.slice.Slice value)
      Description copied from interface: Type
      Writes the Slice value into the BlockBuilder.
      Specified by:
      writeSlice in interface Type
      Overrides:
      writeSlice in class AbstractType
    • writeSlice

      public void writeSlice(BlockBuilder blockBuilder, io.airlift.slice.Slice value, int offset, int length)
      Description copied from interface: Type
      Writes the Slice value into the BlockBuilder.
      Specified by:
      writeSlice in interface Type
      Overrides:
      writeSlice in class AbstractType
    • getObjectValue

      public Object getObjectValue(ConnectorSession session, Block block, int position)
      Description copied from interface: Type
      Gets an object representation of the type value in the block position. This is the value returned to the user via the REST endpoint and therefore must be JSON serializable.
    • getValueType

      public Type getValueType()
    • getTypeParameters

      public List<Type> getTypeParameters()
      Description copied from interface: Type
      For parameterized types returns the list of parameters.
      Specified by:
      getTypeParameters in interface Type
      Overrides:
      getTypeParameters in class AbstractType