Class ProcessAllWindowFunction.Context

java.lang.Object
org.apache.flink.streaming.api.functions.windowing.ProcessAllWindowFunction.Context
Direct Known Subclasses:
InternalProcessAllWindowContext, InternalProcessApplyAllWindowContext
Enclosing class:
ProcessAllWindowFunction<IN,OUT,W extends Window>

public abstract class ProcessAllWindowFunction.Context extends Object
The context holding window metadata.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract org.apache.flink.api.common.state.KeyedStateStore
    State accessor for per-key global state.
    abstract <X> void
    output(org.apache.flink.util.OutputTag<X> outputTag, X value)
    Emits a record to the side output identified by the OutputTag.
    abstract W
     
    abstract org.apache.flink.api.common.state.KeyedStateStore
    State accessor for per-key and per-window state.

    Methods inherited from class java.lang.Object

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

    • Context

      public Context()
  • Method Details

    • window

      public abstract W window()
      Returns:
      The window that is being evaluated.
    • windowState

      public abstract org.apache.flink.api.common.state.KeyedStateStore windowState()
      State accessor for per-key and per-window state.

      NOTE:If you use per-window state you have to ensure that you clean it up by implementing ProcessWindowFunction.clear(ProcessWindowFunction.Context).

    • globalState

      public abstract org.apache.flink.api.common.state.KeyedStateStore globalState()
      State accessor for per-key global state.
    • output

      public abstract <X> void output(org.apache.flink.util.OutputTag<X> outputTag, X value)
      Emits a record to the side output identified by the OutputTag.
      Parameters:
      outputTag - the OutputTag that identifies the side output to emit to.
      value - The record to emit.