Class InternalAggregateProcessAsyncWindowFunction<T,ACC,V,R,K,W extends Window>

java.lang.Object
org.apache.flink.api.common.functions.AbstractRichFunction
org.apache.flink.api.common.functions.WrappingFunction<ProcessWindowFunction<V,R,K,W>>
org.apache.flink.runtime.asyncprocessing.operators.windowing.functions.InternalAggregateProcessAsyncWindowFunction<T,ACC,V,R,K,W>
Type Parameters:
K - The key type
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, InternalAsyncWindowFunction<org.apache.flink.api.common.state.v2.StateIterator<T>,R,K,W>

public final class InternalAggregateProcessAsyncWindowFunction<T,ACC,V,R,K,W extends Window> extends org.apache.flink.api.common.functions.WrappingFunction<ProcessWindowFunction<V,R,K,W>> implements InternalAsyncWindowFunction<org.apache.flink.api.common.state.v2.StateIterator<T>,R,K,W>
Internal window function for wrapping a ProcessWindowFunction that takes an Iterable and an AggregateFunction. This is for async window operator.
See Also:
  • Constructor Details

    • InternalAggregateProcessAsyncWindowFunction

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

    • process

      public org.apache.flink.api.common.state.v2.StateFuture<Void> process(K key, W window, InternalAsyncWindowFunction.InternalWindowContext context, org.apache.flink.api.common.state.v2.StateIterator<T> input, org.apache.flink.util.Collector<R> out) throws Exception
      Description copied from interface: InternalAsyncWindowFunction
      Evaluates the window and outputs none or several elements.
      Specified by:
      process in interface InternalAsyncWindowFunction<T,ACC,V,R>
      context - The context in which the window is being evaluated.
      input - The elements in the window being evaluated.
      out - A collector for emitting elements.
      Returns:
      Throws:
      Exception - The function may throw exceptions to fail the program and trigger recovery.
    • clear

      public org.apache.flink.api.common.state.v2.StateFuture<Void> clear(W window, InternalAsyncWindowFunction.InternalWindowContext context) throws Exception
      Description copied from interface: InternalAsyncWindowFunction
      Deletes any state in the Context when the Window expires (the watermark passes its maxTimestamp + allowedLateness).
      Specified by:
      clear in interface InternalAsyncWindowFunction<T,ACC,V,R>
      context - The context to which the window is being evaluated
      Throws:
      Exception - The function may throw exceptions to fail the program and trigger recovery.
    • getRuntimeContext

      public org.apache.flink.api.common.functions.RuntimeContext getRuntimeContext()
      Specified by:
      getRuntimeContext in interface org.apache.flink.api.common.functions.RichFunction
      Overrides:
      getRuntimeContext in class org.apache.flink.api.common.functions.AbstractRichFunction
    • getIterationRuntimeContext

      public org.apache.flink.api.common.functions.IterationRuntimeContext getIterationRuntimeContext()
      Specified by:
      getIterationRuntimeContext in interface org.apache.flink.api.common.functions.RichFunction
      Overrides:
      getIterationRuntimeContext in class org.apache.flink.api.common.functions.AbstractRichFunction