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

  • 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:
    Serialized Form
    • 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getAllowedLateness()  
      org.apache.flink.streaming.api.windowing.assigners.WindowAssigner<org.apache.flink.util.TaggedUnion<IN1,​IN2>,​W> getAssigner()  
      org.apache.flink.streaming.api.windowing.triggers.Trigger<org.apache.flink.util.TaggedUnion<IN1,​IN2>,​W> getTrigger()  
      org.apache.flink.datastream.api.extension.window.function.TwoInputNonBroadcastWindowStreamProcessFunction<IN1,​IN2,​OUT> getWindowProcessFunction()  
      org.apache.flink.datastream.api.extension.window.strategy.WindowStrategy getWindowStrategy()  
      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> usesStates()  
      • 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 Detail

      • 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 Detail

      • 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()