I - Type of the input data.A - Type of the intermediate data.O - Type of the output data.public interface AggregateFunction<I,A,O> extends Function
| Modifier and Type | Method and Description |
|---|---|
void |
add(I value,
A accumulator) |
A |
createAccumulator() |
O |
getResult(A accumulator) |
A |
merge(A a,
A b) |
void |
retract(A acc,
I value) |
loadCheckpoint, saveCheckpointCopyright © 2020. All rights reserved.