Package io.pravega.connectors.flink
Class EventTimeOrderingFunction<T>
- java.lang.Object
-
- org.apache.flink.api.common.functions.AbstractRichFunction
-
- org.apache.flink.streaming.api.functions.KeyedProcessFunction<java.lang.String,T,T>
-
- io.pravega.connectors.flink.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
-
-
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)
-
-
-
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 interfaceorg.apache.flink.api.common.functions.RichFunction
- Overrides:
open
in classorg.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
-
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
-
-