public class DoubleFirstBufferAggregator extends NumericFirstBufferAggregator<BaseDoubleColumnValueSelector>
| Constructor and Description |
|---|
DoubleFirstBufferAggregator(BaseLongColumnValueSelector timeSelector,
BaseDoubleColumnValueSelector valueSelector) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(ByteBuffer buf,
int position)
Returns the intermediate object representation of the given aggregate.
|
double |
getDouble(ByteBuffer buf,
int position)
Returns the double representation of the given aggregate byte array
Converts the given byte buffer representation into the intermediate aggregate value.
|
float |
getFloat(ByteBuffer buf,
int position)
Returns the float representation of the given aggregate byte array
Converts the given byte buffer representation into the intermediate aggregate value.
|
long |
getLong(ByteBuffer buf,
int position)
Returns the long representation of the given aggregate byte array
Converts the given byte buffer representation into the intermediate aggregate value.
|
aggregate, close, init, inspectRuntimeShapeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisNull, relocatepublic DoubleFirstBufferAggregator(BaseLongColumnValueSelector timeSelector, BaseDoubleColumnValueSelector valueSelector)
public Object get(ByteBuffer buf, int position)
BufferAggregatorAggregatorFactory.combine(Object, Object) method for this aggregator
expects its inputs to be mutable, then the object returned by this method must be mutable.buf - byte buffer storing the byte array representation of the aggregateposition - offset within the byte buffer at which the aggregate value is storedpublic float getFloat(ByteBuffer buf, int position)
BufferAggregatorAggregatorFactory.getTypeName() of "float".
If unimplemented, throwing an UnsupportedOperationException is common and recommended.buf - byte buffer storing the byte array representation of the aggregateposition - offset within the byte buffer at which the aggregate value is storedpublic long getLong(ByteBuffer buf, int position)
BufferAggregatorAggregatorFactory.getTypeName() of "long".
If unimplemented, throwing an UnsupportedOperationException is common and recommended.buf - byte buffer storing the byte array representation of the aggregateposition - offset within the byte buffer at which the aggregate value is storedpublic double getDouble(ByteBuffer buf, int position)
BufferAggregatorAggregatorFactory.getTypeName() of "double".
If unimplemented, throwing an UnsupportedOperationException is common and recommended.
The default implementation casts BufferAggregator.getFloat(ByteBuffer, int) to double.
This default method is added to enable smooth backward compatibility, please re-implement it if your aggregators
work with numeric double columns.buf - byte buffer storing the byte array representation of the aggregateposition - offset within the byte buffer at which the aggregate value is storedCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.