io.ray.streaming.api.function.impl.AggregateFunction Maven / Gradle / Ivy
package io.ray.streaming.api.function.impl;
import io.ray.streaming.api.function.Function;
/**
* Interface of aggregate functions.
*
* @param Type of the input data.
* @param Type of the intermediate data.
* @param Type of the output data.
*/
public interface AggregateFunction extends Function {
A createAccumulator();
void add(I value, A accumulator);
O getResult(A accumulator);
A merge(A a, A b);
void retract(A acc, I value);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy