Class NumericLastAggregator
- java.lang.Object
-
- org.apache.druid.query.aggregation.firstlast.last.NumericLastAggregator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Aggregator
- Direct Known Subclasses:
DoubleLastAggregator,FloatLastAggregator,LongLastAggregator
public abstract class NumericLastAggregator extends Object implements Aggregator
Base type for on heap 'last' aggregator for primitive numeric column selectors.. This could probably share a base class withNumericFirstAggregator
-
-
Constructor Summary
Constructors Constructor Description NumericLastAggregator(BaseLongColumnValueSelector timeSelector, ColumnValueSelector valueSelector, boolean needsFoldCheck)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaggregate()Performs aggregation.voidclose()-
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.Aggregator
aggregateWithSize, get, getDouble, getFloat, getLong, isNull
-
-
-
-
Constructor Detail
-
NumericLastAggregator
public NumericLastAggregator(BaseLongColumnValueSelector timeSelector, ColumnValueSelector valueSelector, boolean needsFoldCheck)
-
-
Method Detail
-
aggregate
public void aggregate()
Description copied from interface:AggregatorPerforms aggregation.- Specified by:
aggregatein interfaceAggregator
-
close
public void close()
- Specified by:
closein interfaceAggregator- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-