Class NoWatermarksGenerator<E>
- java.lang.Object
-
- org.apache.flink.api.common.eventtime.NoWatermarksGenerator<E>
-
- All Implemented Interfaces:
WatermarkGenerator<E>
@Public public final class NoWatermarksGenerator<E> extends Object implements WatermarkGenerator<E>
An implementation of aWatermarkGeneratorthat generates no Watermarks.
-
-
Constructor Summary
Constructors Constructor Description NoWatermarksGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonEvent(E event, long eventTimestamp, WatermarkOutput output)Called for every event, allows the watermark generator to examine and remember the event timestamps, or to emit a watermark based on the event itself.voidonPeriodicEmit(WatermarkOutput output)Called periodically, and might emit a new watermark, or not.
-
-
-
Method Detail
-
onEvent
public void onEvent(E event, long eventTimestamp, WatermarkOutput output)
Description copied from interface:WatermarkGeneratorCalled for every event, allows the watermark generator to examine and remember the event timestamps, or to emit a watermark based on the event itself.- Specified by:
onEventin interfaceWatermarkGenerator<E>
-
onPeriodicEmit
public void onPeriodicEmit(WatermarkOutput output)
Description copied from interface:WatermarkGeneratorCalled periodically, and might emit a new watermark, or not.The interval in which this method is called and Watermarks are generated depends on
ExecutionConfig.getAutoWatermarkInterval().- Specified by:
onPeriodicEmitin interfaceWatermarkGenerator<E>
-
-