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