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
Base type for on heap 'last' aggregator for primitive numeric column selectors..
This could probably share a base class with
NumericFirstAggregator-
Constructor Summary
ConstructorsConstructorDescriptionNumericLastAggregator(BaseLongColumnValueSelector timeSelector, ColumnValueSelector valueSelector, boolean needsFoldCheck) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.query.aggregation.Aggregator
aggregateWithSize, get, getDouble, getFloat, getLong, isNull
-
Constructor Details
-
NumericLastAggregator
public NumericLastAggregator(BaseLongColumnValueSelector timeSelector, ColumnValueSelector valueSelector, boolean needsFoldCheck)
-
-
Method Details
-
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
-