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