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