Class InternalTwoInputWindowStreamProcessFunction<IN1,IN2,OUT,W extends org.apache.flink.streaming.api.windowing.windows.Window>

java.lang.Object
org.apache.flink.datastream.impl.extension.window.function.InternalTwoInputWindowStreamProcessFunction<IN1,IN2,OUT,W>
Type Parameters:
IN1 - Type of the first input elements.
IN2 - Type of the second 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.ProcessFunction, org.apache.flink.datastream.api.function.TwoInputNonBroadcastStreamProcessFunction<IN1,IN2,OUT>

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

    Constructors
    Constructor
    Description
    InternalTwoInputWindowStreamProcessFunction(org.apache.flink.datastream.api.extension.window.function.TwoInputNonBroadcastWindowStreamProcessFunction<IN1,IN2,OUT> windowProcessFunction, org.apache.flink.streaming.api.windowing.assigners.WindowAssigner<org.apache.flink.util.TaggedUnion<IN1,IN2>,W> assigner, org.apache.flink.streaming.api.windowing.triggers.Trigger<org.apache.flink.util.TaggedUnion<IN1,IN2>,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<org.apache.flink.util.TaggedUnion<IN1,IN2>,W>
     
    org.apache.flink.streaming.api.windowing.triggers.Trigger<org.apache.flink.util.TaggedUnion<IN1,IN2>,W>
     
    org.apache.flink.datastream.api.extension.window.function.TwoInputNonBroadcastWindowStreamProcessFunction<IN1,IN2,OUT>
     
    org.apache.flink.datastream.api.extension.window.strategy.WindowStrategy
     
    void
    processRecordFromFirstInput(IN1 record, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.PartitionedContext<OUT> ctx)
     
    void
    processRecordFromSecondInput(IN2 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.ProcessFunction

    close, declareWatermarks

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

    endFirstInput, endSecondInput, onProcessingTimer, onWatermarkFromFirstInput, onWatermarkFromSecondInput, open
  • Constructor Details

    • InternalTwoInputWindowStreamProcessFunction

      public InternalTwoInputWindowStreamProcessFunction(org.apache.flink.datastream.api.extension.window.function.TwoInputNonBroadcastWindowStreamProcessFunction<IN1,IN2,OUT> windowProcessFunction, org.apache.flink.streaming.api.windowing.assigners.WindowAssigner<org.apache.flink.util.TaggedUnion<IN1,IN2>,W> assigner, org.apache.flink.streaming.api.windowing.triggers.Trigger<org.apache.flink.util.TaggedUnion<IN1,IN2>,W> trigger, long allowedLateness, org.apache.flink.datastream.api.extension.window.strategy.WindowStrategy windowStrategy)
  • Method Details

    • processRecordFromFirstInput

      public void processRecordFromFirstInput(IN1 record, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.PartitionedContext<OUT> ctx) throws Exception
      Specified by:
      processRecordFromFirstInput in interface org.apache.flink.datastream.api.function.TwoInputNonBroadcastStreamProcessFunction<IN1,IN2,OUT>
      Throws:
      Exception
    • processRecordFromSecondInput

      public void processRecordFromSecondInput(IN2 record, org.apache.flink.datastream.api.common.Collector<OUT> output, org.apache.flink.datastream.api.context.PartitionedContext<OUT> ctx) throws Exception
      Specified by:
      processRecordFromSecondInput in interface org.apache.flink.datastream.api.function.TwoInputNonBroadcastStreamProcessFunction<IN1,IN2,OUT>
      Throws:
      Exception
    • getWindowProcessFunction

      public org.apache.flink.datastream.api.extension.window.function.TwoInputNonBroadcastWindowStreamProcessFunction<IN1,IN2,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
    • getAssigner

      public org.apache.flink.streaming.api.windowing.assigners.WindowAssigner<org.apache.flink.util.TaggedUnion<IN1,IN2>,W> getAssigner()
    • getTrigger

      public org.apache.flink.streaming.api.windowing.triggers.Trigger<org.apache.flink.util.TaggedUnion<IN1,IN2>,W> getTrigger()
    • getAllowedLateness

      public long getAllowedLateness()
    • getWindowStrategy

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