Class EventTimeOrderingFunction<T>

  • Type Parameters:
    T - The input type of the function.
    All Implemented Interfaces:
    java.io.Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.RichFunction

    public class EventTimeOrderingFunction<T>
    extends org.apache.flink.streaming.api.functions.KeyedProcessFunction<java.lang.String,​T,​T>
    Orders elements into event time order using the managed timestamp state. Buffer the elements if they come early. The type of the key is String.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.flink.streaming.api.functions.KeyedProcessFunction

        org.apache.flink.streaming.api.functions.KeyedProcessFunction.Context, org.apache.flink.streaming.api.functions.KeyedProcessFunction.OnTimerContext
    • Constructor Summary

      Constructors 
      Constructor Description
      EventTimeOrderingFunction​(org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInformation)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onTimer​(long timestamp, org.apache.flink.streaming.api.functions.KeyedProcessFunction.OnTimerContext ctx, org.apache.flink.util.Collector<T> out)  
      void open​(org.apache.flink.configuration.Configuration config)  
      void processElement​(T element, org.apache.flink.streaming.api.functions.KeyedProcessFunction.Context ctx, org.apache.flink.util.Collector<T> out)  
      • Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction

        close, getIterationRuntimeContext, getRuntimeContext, setRuntimeContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EventTimeOrderingFunction

        public EventTimeOrderingFunction​(org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInformation)
    • Method Detail

      • open

        public void open​(org.apache.flink.configuration.Configuration config)
                  throws java.lang.Exception
        Specified by:
        open in interface org.apache.flink.api.common.functions.RichFunction
        Overrides:
        open in class org.apache.flink.api.common.functions.AbstractRichFunction
        Throws:
        java.lang.Exception
      • processElement

        public void processElement​(T element,
                                   org.apache.flink.streaming.api.functions.KeyedProcessFunction.Context ctx,
                                   org.apache.flink.util.Collector<T> out)
                            throws java.lang.Exception
        Specified by:
        processElement in class org.apache.flink.streaming.api.functions.KeyedProcessFunction<java.lang.String,​T,​T>
        Throws:
        java.lang.Exception
      • onTimer

        public void onTimer​(long timestamp,
                            org.apache.flink.streaming.api.functions.KeyedProcessFunction.OnTimerContext ctx,
                            org.apache.flink.util.Collector<T> out)
                     throws java.lang.Exception
        Overrides:
        onTimer in class org.apache.flink.streaming.api.functions.KeyedProcessFunction<java.lang.String,​T,​T>
        Throws:
        java.lang.Exception