All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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 - 2024 Weber Informatics LLC | Privacy Policy