Interface TwoOutputEventTimeStreamProcessFunction<IN,OUT1,OUT2>
- All Superinterfaces:
EventTimeProcessFunction,org.apache.flink.api.common.functions.Function,ProcessFunction,Serializable,TwoOutputStreamProcessFunction<IN,OUT1, OUT2>
@Experimental
public interface TwoOutputEventTimeStreamProcessFunction<IN,OUT1,OUT2>
extends EventTimeProcessFunction, TwoOutputStreamProcessFunction<IN,OUT1,OUT2>
The
TwoOutputStreamProcessFunction that extends with event time support.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonEventTimer(long timestamp, Collector<OUT1> output1, Collector<OUT2> output2, TwoOutputPartitionedContext<OUT1, OUT2> ctx) Invoked when an event-time timer fires.default voidonEventTimeWatermark(long watermarkTimestamp, Collector<OUT1> output1, Collector<OUT2> output2, TwoOutputNonPartitionedContext<OUT1, OUT2> ctx) The#onEventTimeWatermarkmethod signifies that the EventTimeProcessFunction has received an EventTimeWatermark.Methods inherited from interface org.apache.flink.datastream.api.extension.eventtime.function.EventTimeProcessFunction
initEventTimeProcessFunctionMethods inherited from interface org.apache.flink.datastream.api.function.ProcessFunction
close, declareWatermarks, usesStatesMethods inherited from interface org.apache.flink.datastream.api.function.TwoOutputStreamProcessFunction
endInput, onProcessingTimer, onWatermark, open, processRecord
-
Method Details
-
onEventTimeWatermark
default void onEventTimeWatermark(long watermarkTimestamp, Collector<OUT1> output1, Collector<OUT2> output2, TwoOutputNonPartitionedContext<OUT1, OUT2> ctx) throws ExceptionThe#onEventTimeWatermarkmethod signifies that the EventTimeProcessFunction has received an EventTimeWatermark. Other types of watermarks will be processed by theProcessFunction#onWatermarkmethod.- Throws:
Exception
-
onEventTimer
default void onEventTimer(long timestamp, Collector<OUT1> output1, Collector<OUT2> output2, TwoOutputPartitionedContext<OUT1, OUT2> ctx) throws ExceptionInvoked when an event-time timer fires. Note that it is only used inKeyedPartitionStream.- Throws:
Exception
-