Class AggregateApplyAllWindowFunction<W extends Window,T,ACC,V,R>

java.lang.Object
org.apache.flink.api.common.functions.AbstractRichFunction
org.apache.flink.api.common.functions.WrappingFunction<AllWindowFunction<V,R,W>>
org.apache.flink.streaming.api.functions.windowing.AggregateApplyAllWindowFunction<W,T,ACC,V,R>
Type Parameters:
W - The window type
T - The type of the input to the AggregateFunction
ACC - The type of the AggregateFunction's accumulator
V - The type of the AggregateFunction's result, and the input to the WindowFunction
R - The result type of the WindowFunction
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.RichFunction, AllWindowFunction<T,R,W>

@Internal public class AggregateApplyAllWindowFunction<W extends Window,T,ACC,V,R> extends org.apache.flink.api.common.functions.WrappingFunction<AllWindowFunction<V,R,W>> implements AllWindowFunction<T,R,W>
A AllWindowFunction that composes an AggregateFunction and AllWindowFunction. Upon invocation, this first applies AggregateFunction to the input, and then finally the AllWindowFunction to the single result element.
See Also:
  • Field Summary

    Fields inherited from class org.apache.flink.api.common.functions.WrappingFunction

    wrappedFunction
  • Constructor Summary

    Constructors
    Constructor
    Description
    AggregateApplyAllWindowFunction(org.apache.flink.api.common.functions.AggregateFunction<T,ACC,V> aggFunction, AllWindowFunction<V,R,W> windowFunction)
     
  • Method Summary

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

    Methods inherited from class org.apache.flink.api.common.functions.WrappingFunction

    close, getWrappedFunction, open, setRuntimeContext

    Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction

    getIterationRuntimeContext, getRuntimeContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AggregateApplyAllWindowFunction

      public AggregateApplyAllWindowFunction(org.apache.flink.api.common.functions.AggregateFunction<T,ACC,V> aggFunction, AllWindowFunction<V,R,W> windowFunction)
  • Method Details

    • apply

      public void apply(W window, Iterable<T> values, org.apache.flink.util.Collector<R> out) throws Exception
      Description copied from interface: AllWindowFunction
      Evaluates the window and outputs none or several elements.
      Specified by:
      apply in interface AllWindowFunction<W extends Window,T,ACC>
      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.