Class DoubleLastAggregator
- java.lang.Object
-
- org.apache.druid.query.aggregation.firstlast.last.NumericLastAggregator
-
- org.apache.druid.query.aggregation.firstlast.last.DoubleLastAggregator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Aggregator
public class DoubleLastAggregator extends NumericLastAggregator
-
-
Constructor Summary
Constructors Constructor Description DoubleLastAggregator(BaseLongColumnValueSelector timeSelector, ColumnValueSelector valueSelector, boolean needsFoldCheck)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget()doublegetDouble()The default implementation castsAggregator.getFloat()to double.floatgetFloat()longgetLong()-
Methods inherited from class org.apache.druid.query.aggregation.firstlast.last.NumericLastAggregator
aggregate, close
-
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, isNull
-
-
-
-
Constructor Detail
-
DoubleLastAggregator
public DoubleLastAggregator(BaseLongColumnValueSelector timeSelector, ColumnValueSelector valueSelector, boolean needsFoldCheck)
-
-
Method Detail
-
get
public Object get()
-
getFloat
public float getFloat()
-
getLong
public long getLong()
-
getDouble
public double getDouble()
Description copied from interface:AggregatorThe default implementation castsAggregator.getFloat()to double. This default method is added to enable smooth backward compatibility, please re-implement it if your aggregators work with numeric double columns.
-
-