public static class SuppressedAggregatorFactory.SuppressedAggregator extends Object implements Aggregator
| Constructor and Description |
|---|
SuppressedAggregator(Aggregator delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate() |
void |
close() |
boolean |
equals(Object o) |
Object |
get() |
Aggregator |
getDelegate() |
double |
getDouble()
The default implementation casts
Aggregator.getFloat() to double. |
float |
getFloat() |
long |
getLong() |
int |
hashCode() |
boolean |
isNull()
returns true if aggregator's output type is primitive long/double/float and aggregated value is null,
but when aggregated output type is Object, this method always returns false,
and users are advised to check nullability for the object returned by
Aggregator.get()
method. |
String |
toString() |
public SuppressedAggregator(Aggregator delegate)
public void aggregate()
aggregate in interface Aggregator@Nullable public Object get()
get in interface Aggregatorpublic float getFloat()
getFloat in interface Aggregatorpublic long getLong()
getLong 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 boolean isNull()
AggregatorAggregator.get()
method.
The default implementation always return false to enable smooth backward compatibility,
re-implement if your aggregator is nullable.isNull in interface Aggregatorpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface Aggregatorpublic Aggregator getDelegate()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.