public class DoubleFirstAggregator extends Object implements Aggregator
| Modifier and Type | Field and Description |
|---|---|
protected long |
firstTime |
protected double |
firstValue |
| Constructor and Description |
|---|
DoubleFirstAggregator(String name,
LongColumnSelector timeSelector,
DoubleColumnSelector valueSelector) |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate() |
void |
close() |
Object |
get() |
double |
getDouble()
The default implementation casts
Aggregator.getFloat() to double. |
float |
getFloat() |
long |
getLong() |
void |
reset() |
public DoubleFirstAggregator(String name, LongColumnSelector timeSelector, DoubleColumnSelector valueSelector)
public void aggregate()
aggregate in interface Aggregatorpublic void reset()
reset in interface Aggregatorpublic Object get()
get in interface Aggregatorpublic float getFloat()
getFloat in interface Aggregatorpublic double getDouble()
AggregatorAggregator.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.getDouble in interface Aggregatorpublic long getLong()
getLong in interface Aggregatorpublic void close()
close in interface Aggregatorclose in interface Closeableclose in interface AutoCloseableCopyright © 2011–2017. All rights reserved.