Class FloatSumBufferAggregator
- java.lang.Object
-
- org.apache.druid.query.aggregation.SimpleFloatBufferAggregator
-
- org.apache.druid.query.aggregation.FloatSumBufferAggregator
-
- All Implemented Interfaces:
BufferAggregator
,HotLoopCallee
public class FloatSumBufferAggregator extends SimpleFloatBufferAggregator
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
aggregate(ByteBuffer buf, int position, float value)
void
init(ByteBuffer buf, int position)
Initializes the buffer location Implementations of this method must initialize the byte buffer at the given position Implementations must not change the position, limit or mark of the given buffer This method must not exceed the number of bytes returned byAggregatorFactory.getMaxIntermediateSizeWithNulls()
in the correspondingAggregatorFactory
-
Methods inherited from class org.apache.druid.query.aggregation.SimpleFloatBufferAggregator
aggregate, close, get, getDouble, getFloat, getLong, inspectRuntimeShape
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.query.aggregation.BufferAggregator
isNull, relocate
-
-
-
-
Method Detail
-
aggregate
public void aggregate(ByteBuffer buf, int position, float value)
- Specified by:
aggregate
in classSimpleFloatBufferAggregator
-
init
public void init(ByteBuffer buf, int position)
Description copied from interface:BufferAggregator
Initializes the buffer location Implementations of this method must initialize the byte buffer at the given position Implementations must not change the position, limit or mark of the given buffer This method must not exceed the number of bytes returned byAggregatorFactory.getMaxIntermediateSizeWithNulls()
in the correspondingAggregatorFactory
- Parameters:
buf
- byte buffer to initializeposition
- offset within the byte buffer for initialization
-
-