Class EventTimeWrappedTwoOutputStreamProcessFunction<IN,OUT1,OUT2>
java.lang.Object
org.apache.flink.datastream.impl.extension.eventtime.functions.EventTimeWrappedTwoOutputStreamProcessFunction<IN,OUT1,OUT2>
- 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 EventTimeWrappedTwoOutputStreamProcessFunction<IN,OUT1,OUT2>
extends Object
implements org.apache.flink.datastream.api.function.TwoOutputStreamProcessFunction<IN,OUT1,OUT2>
The wrapped
TwoOutputEventTimeStreamProcessFunction that take care of event-time
alignment with idleness.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEventTimeWrappedTwoOutputStreamProcessFunction(org.apache.flink.datastream.api.extension.eventtime.function.TwoOutputEventTimeStreamProcessFunction<IN, OUT1, OUT2> wrappedUserFunction) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Set<? extends org.apache.flink.api.common.watermark.WatermarkDeclaration>voidvoidinitEventTimeExtension(org.apache.flink.streaming.api.operators.InternalTimerService<org.apache.flink.runtime.state.VoidNamespace> timerService, Supplier<Long> eventTimeSupplier, org.apache.flink.streaming.runtime.watermark.extension.eventtime.EventTimeWatermarkHandler eventTimeWatermarkHandler) Initialize the event time extension, note that this method should be invoked before open method.voidonEventTime(long timestamp, 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) voidonProcessingTimer(long timestamp, 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) org.apache.flink.api.common.watermark.WatermarkHandlingResultonWatermark(org.apache.flink.api.common.watermark.Watermark watermark, org.apache.flink.datastream.api.common.Collector<OUT1> output1, org.apache.flink.datastream.api.common.Collector<OUT2> output2, org.apache.flink.datastream.api.context.TwoOutputNonPartitionedContext<OUT1, OUT2> ctx) voidvoidprocessRecord(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>
-
Constructor Details
-
EventTimeWrappedTwoOutputStreamProcessFunction
-
-
Method Details
-
open
-
initEventTimeExtension
public void initEventTimeExtension(@Nullable org.apache.flink.streaming.api.operators.InternalTimerService<org.apache.flink.runtime.state.VoidNamespace> timerService, Supplier<Long> eventTimeSupplier, org.apache.flink.streaming.runtime.watermark.extension.eventtime.EventTimeWatermarkHandler eventTimeWatermarkHandler) Initialize the event time extension, note that this method should be invoked before open method. -
processRecord
-
endInput
-
onProcessingTimer
-
onWatermark
public org.apache.flink.api.common.watermark.WatermarkHandlingResult onWatermark(org.apache.flink.api.common.watermark.Watermark watermark, org.apache.flink.datastream.api.common.Collector<OUT1> output1, org.apache.flink.datastream.api.common.Collector<OUT2> output2, org.apache.flink.datastream.api.context.TwoOutputNonPartitionedContext<OUT1, OUT2> ctx) throws Exception -
onEventTime
public void onEventTime(long timestamp, 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- Throws:
Exception
-
usesStates
- Specified by:
usesStatesin interfaceorg.apache.flink.datastream.api.function.ProcessFunction
-
declareWatermarks
public Set<? extends org.apache.flink.api.common.watermark.WatermarkDeclaration> declareWatermarks()- Specified by:
declareWatermarksin interfaceorg.apache.flink.datastream.api.function.ProcessFunction
-
close
- Specified by:
closein interfaceorg.apache.flink.datastream.api.function.ProcessFunction- Throws:
Exception
-
getWrappedUserFunction
-