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