VT - the "Value Type" to aggregate, e.g. DoubleValue, StringValuePT - the "Primitive Type" that "Value Type" can be naturally converted to, e.g. DoubleValue converts to DoubleR - the result type of the aggregation, e.g. NumericColumnSummaryA - the underlying primitive Aggregator that does the actual work, e.g. DoubleSummaryAggregator@Internal public abstract class ValueSummaryAggregator<VT extends org.apache.flink.types.Value,PT,R,A extends Aggregator<PT,R>> extends Object implements Aggregator<VT,R>
| Modifier and Type | Class and Description |
|---|---|
static class |
ValueSummaryAggregator.BooleanValueSummaryAggregator |
static class |
ValueSummaryAggregator.DoubleValueSummaryAggregator |
static class |
ValueSummaryAggregator.FloatValueSummaryAggregator |
static class |
ValueSummaryAggregator.IntegerValueSummaryAggregator |
static class |
ValueSummaryAggregator.LongValueSummaryAggregator |
static class |
ValueSummaryAggregator.ShortValueSummaryAggregator |
static class |
ValueSummaryAggregator.StringValueSummaryAggregator |
| Constructor and Description |
|---|
ValueSummaryAggregator() |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(VT value)
Add a value to the current aggregation
|
void |
combine(Aggregator<VT,R> otherSameType)
Combine two aggregations of the same type.
|
protected abstract PT |
getValue(VT value)
Get the value out of a value type.
|
protected abstract A |
initPrimitiveAggregator()
Initialize an aggregator that can be used for the underlying primitive in the Value type.
|
R |
result()
Provide the final result of the aggregation
|
public void aggregate(VT value)
Aggregatoraggregate in interface Aggregator<VT extends org.apache.flink.types.Value,R>public void combine(Aggregator<VT,R> otherSameType)
Aggregatorcombine in interface Aggregator<VT extends org.apache.flink.types.Value,R>public R result()
Aggregatorresult in interface Aggregator<VT extends org.apache.flink.types.Value,R>protected abstract A initPrimitiveAggregator()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.