public interface Aggregator extends Closeable
ColumnValueSelector objects.| Modifier and Type | Method and Description |
|---|---|
void |
aggregate() |
void |
close() |
Object |
get() |
default double |
getDouble()
The default implementation casts
getFloat() to double. |
float |
getFloat() |
long |
getLong() |
default 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
get()
method. |
void aggregate()
float getFloat()
long getLong()
default double getDouble()
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.default boolean isNull()
get()
method.
The default implementation always return false to enable smooth backward compatibility,
re-implement if your aggregator is nullable.void close()
close in interface AutoCloseableclose in interface CloseableCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.