Class InternalSingleValueProcessAllWindowFunction<IN,OUT,W extends Window>

java.lang.Object
org.apache.flink.api.common.functions.AbstractRichFunction
org.apache.flink.api.common.functions.WrappingFunction<ProcessAllWindowFunction<IN,OUT,W>>
org.apache.flink.streaming.runtime.operators.windowing.functions.InternalSingleValueProcessAllWindowFunction<IN,OUT,W>
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.RichFunction, InternalWindowFunction<IN,OUT,Byte,W>

public final class InternalSingleValueProcessAllWindowFunction<IN,OUT,W extends Window> extends org.apache.flink.api.common.functions.WrappingFunction<ProcessAllWindowFunction<IN,OUT,W>> implements InternalWindowFunction<IN,OUT,Byte,W>
Internal window function for wrapping a ProcessAllWindowFunction that takes an Iterable when the window state is a single value.
See Also:
  • Constructor Details

    • InternalSingleValueProcessAllWindowFunction

      public InternalSingleValueProcessAllWindowFunction(ProcessAllWindowFunction<IN,OUT,W> wrappedFunction)
  • Method Details

    • open

      public void open(org.apache.flink.api.common.functions.OpenContext openContext) throws Exception
      Specified by:
      open in interface org.apache.flink.api.common.functions.RichFunction
      Overrides:
      open in class org.apache.flink.api.common.functions.WrappingFunction<ProcessAllWindowFunction<IN,OUT,W extends Window>>
      Throws:
      Exception
    • process

      public void process(Byte key, W window, InternalWindowFunction.InternalWindowContext context, IN input, org.apache.flink.util.Collector<OUT> out) throws Exception
      Description copied from interface: InternalWindowFunction
      Evaluates the window and outputs none or several elements.
      Specified by:
      process in interface InternalWindowFunction<IN,OUT,Byte,W extends Window>
      context - The context in which the window is being evaluated.
      input - 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.
    • clear

      public void clear(W window, InternalWindowFunction.InternalWindowContext context) throws Exception
      Description copied from interface: InternalWindowFunction
      Deletes any state in the Context when the Window expires (the watermark passes its maxTimestamp + allowedLateness).
      Specified by:
      clear in interface InternalWindowFunction<IN,OUT,Byte,W extends Window>
      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