Class DoubleLastAggregator
- java.lang.Object
-
- org.apache.druid.query.aggregation.last.NumericLastAggregator<BaseDoubleColumnValueSelector>
-
- org.apache.druid.query.aggregation.last.DoubleLastAggregator
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Aggregator
public class DoubleLastAggregator extends NumericLastAggregator<BaseDoubleColumnValueSelector>
-
-
Constructor Summary
Constructors Constructor Description DoubleLastAggregator(BaseLongColumnValueSelector timeSelector, BaseDoubleColumnValueSelector valueSelector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
get()
double
getDouble()
The default implementation castsAggregator.getFloat()
to double.float
getFloat()
long
getLong()
-
Methods inherited from class org.apache.druid.query.aggregation.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, BaseDoubleColumnValueSelector valueSelector)
-
-
Method Detail
-
get
public Object get()
-
getFloat
public float getFloat()
-
getLong
public long getLong()
-
getDouble
public double getDouble()
Description copied from interface:Aggregator
The 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.
-
-