Class ObjectColumnDoubleBufferAggregatorWrapper

java.lang.Object
org.apache.druid.query.aggregation.DelegatingBufferAggregator
org.apache.druid.query.aggregation.ObjectColumnDoubleBufferAggregatorWrapper
All Implemented Interfaces:
BufferAggregator, HotLoopCallee

public class ObjectColumnDoubleBufferAggregatorWrapper extends DelegatingBufferAggregator
This class can be used to wrap Double BufferAggregator that consume double type columns to handle Object type.
  • Constructor Details

  • Method Details

    • aggregate

      public void aggregate(ByteBuffer buf, int position)
      Description copied from interface: BufferAggregator
      Aggregates metric values into the given aggregate byte representation Implementations of this method must read in the aggregate value from the buffer at the given position, aggregate the next element of data and write the updated aggregate value back into the buffer. Implementations must not change the position, limit or mark of the given buffer
      Specified by:
      aggregate in interface BufferAggregator
      Overrides:
      aggregate in class DelegatingBufferAggregator
      Parameters:
      buf - byte buffer storing the byte array representation of the aggregate
      position - offset within the byte buffer at which the current aggregate value is stored