public class LongSumBufferAggregator extends LongBufferAggregator
selector| Modifier and Type | Method and Description | 
|---|---|
void | 
aggregate(ByteBuffer buf,
         int position)
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. 
 | 
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 by  
AggregatorFactory.getMaxIntermediateSize()
 in the corresponding AggregatorFactory | 
close, get, getDouble, getFloat, getLong, inspectRuntimeShapeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrelocatepublic void init(ByteBuffer buf, int position)
BufferAggregatorAggregatorFactory.getMaxIntermediateSize()
 in the corresponding AggregatorFactorybuf - byte buffer to initializeposition - offset within the byte buffer for initializationpublic void aggregate(ByteBuffer buf, int position)
BufferAggregatorbuf - byte buffer storing the byte array representation of the aggregateposition - offset within the byte buffer at which the current aggregate value is storedCopyright © 2011–2018. All rights reserved.