public static final class VarianceBufferAggregator.LongVarianceAggregator extends VarianceBufferAggregator
VarianceBufferAggregator.FloatVarianceAggregator, VarianceBufferAggregator.LongVarianceAggregator, VarianceBufferAggregator.ObjectVarianceAggregator
name
Constructor and Description |
---|
LongVarianceAggregator(String name,
LongColumnSelector 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.
|
close, get, getFloat, getLong, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
relocate
public LongVarianceAggregator(String name, LongColumnSelector selector)
public void aggregate(ByteBuffer buf, int position)
BufferAggregator
buf
- byte buffer storing the byte array representation of the aggregateposition
- offset within the byte buffer at which the current aggregate value is storedCopyright © 2011–2017. All rights reserved.