Class P4HyperLogLogType

All Implemented Interfaces:
Type, VariableWidthType

public class P4HyperLogLogType extends AbstractVariableWidthType
  • Field Details

  • Constructor Details

    • P4HyperLogLogType

      public P4HyperLogLogType()
  • 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.