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