public class DoubleAnyBufferAggregator extends NumericAnyBufferAggregator<BaseDoubleColumnValueSelector>
| Constructor and Description |
|---|
DoubleAnyBufferAggregator(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 DoubleAnyBufferAggregator(BaseDoubleColumnValueSelector valueSelector)
@Nullable 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.getIntermediateType() ()} of ValueType.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.getIntermediateType() of of ValueType.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.getIntermediateType() of of ValueType.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–2022 The Apache Software Foundation. All rights reserved.