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

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

      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.OneInputWindowStreamProcessFunction<IN,​OUT> getWindowProcessFunction()  
      org.apache.flink.datastream.api.extension.window.strategy.WindowStrategy getWindowStrategy()  
      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> usesStates()  
      • 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 Detail

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

      • 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