Interface AllWindowFunction<IN,OUT,W extends Window>

Type Parameters:
IN - The type of the input value.
OUT - The type of the output value.
W - The type of Window that this window function can be applied on.
All Superinterfaces:
org.apache.flink.api.common.functions.Function, Serializable
All Known Implementing Classes:
AggregateApplyAllWindowFunction, PassThroughAllWindowFunction, ReduceApplyAllWindowFunction

@Public public interface AllWindowFunction<IN,OUT,W extends Window> extends org.apache.flink.api.common.functions.Function, Serializable
Base interface for functions that are evaluated over non-keyed windows.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(W window, Iterable<IN> values, org.apache.flink.util.Collector<OUT> out)
    Evaluates the window and outputs none or several elements.
  • Method Details

    • apply

      void apply(W window, Iterable<IN> values, org.apache.flink.util.Collector<OUT> out) throws Exception
      Evaluates the window and outputs none or several elements.
      Parameters:
      window - The window that is being evaluated.
      values - The elements in the window being evaluated.
      out - A collector for emitting elements.
      Throws:
      Exception - The function may throw exceptions to fail the program and trigger recovery.