Class InternalTwoOutputWindowStreamProcessFunction<IN,​OUT1,​OUT2,​W extends org.apache.flink.streaming.api.windowing.windows.Window>

  • Type Parameters:
    IN - Type of the input elements.
    OUT1 - Type of the first output elements.
    OUT2 - Type of the second 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.TwoOutputStreamProcessFunction<IN,​OUT1,​OUT2>

    public class InternalTwoOutputWindowStreamProcessFunction<IN,​OUT1,​OUT2,​W extends org.apache.flink.streaming.api.windowing.windows.Window>
    extends Object
    implements org.apache.flink.datastream.api.function.TwoOutputStreamProcessFunction<IN,​OUT1,​OUT2>
    A class that wrap a TwoOutputWindowStreamProcessFunction 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
      InternalTwoOutputWindowStreamProcessFunction​(org.apache.flink.datastream.api.extension.window.function.TwoOutputWindowStreamProcessFunction<IN,​OUT1,​OUT2> 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getAllowedLateness()  
      org.apache.flink.streaming.api.windowing.assigners.WindowAssigner<IN,​W> getAssigner()  
      org.apache.flink.streaming.api.windowing.triggers.Trigger<IN,​W> getTrigger()  
      org.apache.flink.datastream.api.extension.window.function.TwoOutputWindowStreamProcessFunction<IN,​OUT1,​OUT2> getWindowProcessFunction()  
      org.apache.flink.datastream.api.extension.window.strategy.WindowStrategy getWindowStrategy()  
      void processRecord​(IN record, org.apache.flink.datastream.api.common.Collector<OUT1> output1, org.apache.flink.datastream.api.common.Collector<OUT2> output2, org.apache.flink.datastream.api.context.TwoOutputPartitionedContext<OUT1,​OUT2> 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.TwoOutputStreamProcessFunction

        endInput, onProcessingTimer, onWatermark, open
    • Constructor Detail

      • InternalTwoOutputWindowStreamProcessFunction

        public InternalTwoOutputWindowStreamProcessFunction​(org.apache.flink.datastream.api.extension.window.function.TwoOutputWindowStreamProcessFunction<IN,​OUT1,​OUT2> 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 Detail

      • processRecord

        public void processRecord​(IN record,
                                  org.apache.flink.datastream.api.common.Collector<OUT1> output1,
                                  org.apache.flink.datastream.api.common.Collector<OUT2> output2,
                                  org.apache.flink.datastream.api.context.TwoOutputPartitionedContext<OUT1,​OUT2> ctx)
                           throws Exception
        Specified by:
        processRecord in interface org.apache.flink.datastream.api.function.TwoOutputStreamProcessFunction<IN,​OUT1,​OUT2>
        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.TwoOutputWindowStreamProcessFunction<IN,​OUT1,​OUT2> getWindowProcessFunction()
      • usesStates

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