Class InternalOneInputWindowStreamProcessFunction<IN,OUT,W extends org.apache.flink.streaming.api.windowing.windows.Window>

java.lang.Object
org.apache.flink.datastream.impl.extension.window.function.InternalOneInputWindowStreamProcessFunction<IN,OUT,W>
Type Parameters:
IN - Type of the input elements.
OUT - Type of the output elements.
W - Type of the window.
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.datastream.api.function.OneInputStreamProcessFunction<IN,OUT>, org.apache.flink.datastream.api.function.ProcessFunction

public class InternalOneInputWindowStreamProcessFunction<IN,OUT,W extends org.apache.flink.streaming.api.windowing.windows.Window> extends Object implements org.apache.flink.datastream.api.function.OneInputStreamProcessFunction<IN,OUT>
A class that wrap a OneInputWindowStreamProcessFunction to process function. This will be translated to a window operator instead of vanilla process operator.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    InternalOneInputWindowStreamProcessFunction(org.apache.flink.datastream.api.extension.window.function.OneInputWindowStreamProcessFunction<IN,OUT> windowProcessFunction, org.apache.flink.streaming.api.windowing.assigners.WindowAssigner<IN,W> assigner, org.apache.flink.streaming.api.windowing.triggers.Trigger<IN,W> trigger, long allowedLateness, org.apache.flink.datastream.api.extension.window.strategy.WindowStrategy windowStrategy)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    org.apache.flink.streaming.api.windowing.assigners.WindowAssigner<IN,W>
     
    org.apache.flink.streaming.api.windowing.triggers.Trigger<IN,W>
     
    org.apache.flink.datastream.api.extension.window.function.OneInputWindowStreamProcessFunction<IN,OUT>
     
    org.apache.flink.datastream.api.extension.window.strategy.WindowStrategy
     
    void
    processRecord(IN record, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.PartitionedContext<OUT> ctx)
     
    Set<org.apache.flink.api.common.state.StateDeclaration>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.flink.datastream.api.function.OneInputStreamProcessFunction

    endInput, onProcessingTimer, onWatermark, open

    Methods inherited from interface org.apache.flink.datastream.api.function.ProcessFunction

    close, declareWatermarks
  • Constructor Details

    • InternalOneInputWindowStreamProcessFunction

      public InternalOneInputWindowStreamProcessFunction(org.apache.flink.datastream.api.extension.window.function.OneInputWindowStreamProcessFunction<IN,OUT> windowProcessFunction, org.apache.flink.streaming.api.windowing.assigners.WindowAssigner<IN,W> assigner, org.apache.flink.streaming.api.windowing.triggers.Trigger<IN,W> trigger, long allowedLateness, org.apache.flink.datastream.api.extension.window.strategy.WindowStrategy windowStrategy)
  • Method Details

    • processRecord

      public void processRecord(IN record, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.PartitionedContext<OUT> ctx) throws Exception
      Specified by:
      processRecord in interface org.apache.flink.datastream.api.function.OneInputStreamProcessFunction<IN,OUT>
      Throws:
      Exception
    • getAssigner

      public org.apache.flink.streaming.api.windowing.assigners.WindowAssigner<IN,W> getAssigner()
    • getTrigger

      public org.apache.flink.streaming.api.windowing.triggers.Trigger<IN,W> getTrigger()
    • getAllowedLateness

      public long getAllowedLateness()
    • getWindowStrategy

      public org.apache.flink.datastream.api.extension.window.strategy.WindowStrategy getWindowStrategy()
    • getWindowProcessFunction

      public org.apache.flink.datastream.api.extension.window.function.OneInputWindowStreamProcessFunction<IN,OUT> getWindowProcessFunction()
    • usesStates

      public Set<org.apache.flink.api.common.state.StateDeclaration> usesStates()
      Specified by:
      usesStates in interface org.apache.flink.datastream.api.function.ProcessFunction