Class EventTimeWatermarkHandler
- java.lang.Object
-
- org.apache.flink.streaming.runtime.watermark.extension.eventtime.EventTimeWatermarkHandler
-
public class EventTimeWatermarkHandler extends Object
This class is used to handleEventTimeExtensionrelated watermarks in operator, such asEventTimeExtension.EVENT_TIME_WATERMARK_DECLARATIONandEventTimeExtension.IDLE_STATUS_WATERMARK_DECLARATION. It will emit event time watermark and idle status to downstream operators according to received watermarks.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventTimeWatermarkHandler.EventTimeUpdateStatusThis class represents event-time updated status.
-
Constructor Summary
Constructors Constructor Description EventTimeWatermarkHandler(int numOfInput, Output<?> output, InternalTimeServiceManager<?> timeServiceManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetLastEmitWatermark()EventTimeWatermarkHandler.EventTimeUpdateStatusprocessWatermark(org.apache.flink.api.common.watermark.Watermark watermark, int inputIndex)Process EventTimeWatermark/IdleStatusWatermark.
-
-
-
Constructor Detail
-
EventTimeWatermarkHandler
public EventTimeWatermarkHandler(int numOfInput, Output<?> output, @Nullable InternalTimeServiceManager<?> timeServiceManager)
-
-
Method Detail
-
getLastEmitWatermark
public long getLastEmitWatermark()
-
processWatermark
public EventTimeWatermarkHandler.EventTimeUpdateStatus processWatermark(org.apache.flink.api.common.watermark.Watermark watermark, int inputIndex) throws Exception
Process EventTimeWatermark/IdleStatusWatermark.It's caller's responsibility to check whether the watermark is EventTimeWatermark/IdleStatusWatermark.
- Returns:
- the status of event time watermark update.
- Throws:
Exception
-
-