public class DecimalSumAggFunction extends AggregateFunction<BigDecimal,DecimalSumAccumulator>
Constructor and Description |
---|
DecimalSumAggFunction() |
Modifier and Type | Method and Description |
---|---|
void |
accumulate(DecimalSumAccumulator acc,
Object value) |
DecimalSumAccumulator |
createAccumulator()
Creates and init the Accumulator for this
AggregateFunction . |
TypeInformation<?> |
getAccumulatorType() |
BigDecimal |
getValue(DecimalSumAccumulator acc)
Called every time when an aggregation result should be materialized.
|
void |
merge(DecimalSumAccumulator acc,
Iterable<DecimalSumAccumulator> its) |
void |
resetAccumulator(DecimalSumAccumulator acc) |
requiresOver
close, functionIdentifier, open
public DecimalSumAccumulator createAccumulator()
AggregateFunction
AggregateFunction
.
createAccumulator
in class AggregateFunction<BigDecimal,DecimalSumAccumulator>
public void accumulate(DecimalSumAccumulator acc, Object value)
public BigDecimal getValue(DecimalSumAccumulator acc)
AggregateFunction
getValue
in class AggregateFunction<BigDecimal,DecimalSumAccumulator>
acc
- the accumulator which contains the current
aggregated resultspublic void merge(DecimalSumAccumulator acc, Iterable<DecimalSumAccumulator> its)
public void resetAccumulator(DecimalSumAccumulator acc)
public TypeInformation<?> getAccumulatorType()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.