T
- The type of the emitted records.@Internal public class NoOpTimestampsAndWatermarks<T> extends Object implements TimestampsAndWatermarks<T>
TimestampsAndWatermarks
where all watermarking/event-time operations
are no-ops. This should be used in execution contexts where no watermarks are needed, for example
in BATCH execution mode.TimestampsAndWatermarks.WatermarkUpdateListener
Constructor and Description |
---|
NoOpTimestampsAndWatermarks(TimestampAssigner<T> timestamps)
Creates a new
NoOpTimestampsAndWatermarks with the given TimestampAssigner. |
Modifier and Type | Method and Description |
---|---|
ReaderOutput<T> |
createMainOutput(PushingAsyncDataInput.DataOutput<T> output,
TimestampsAndWatermarks.WatermarkUpdateListener watermarkEmitted)
Creates the ReaderOutput for the source reader, than internally runs the timestamp extraction
and watermark generation.
|
void |
startPeriodicWatermarkEmits()
Starts emitting periodic watermarks, if this implementation produces watermarks, and if
periodic watermarks are configured.
|
void |
stopPeriodicWatermarkEmits()
Stops emitting periodic watermarks.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createNoOpEventTimeLogic, createProgressiveEventTimeLogic
public NoOpTimestampsAndWatermarks(TimestampAssigner<T> timestamps)
NoOpTimestampsAndWatermarks
with the given TimestampAssigner.public ReaderOutput<T> createMainOutput(PushingAsyncDataInput.DataOutput<T> output, TimestampsAndWatermarks.WatermarkUpdateListener watermarkEmitted)
TimestampsAndWatermarks
createMainOutput
in interface TimestampsAndWatermarks<T>
public void startPeriodicWatermarkEmits()
TimestampsAndWatermarks
Periodic watermarks are produced by periodically calling the WatermarkGenerator.onPeriodicEmit(WatermarkOutput)
method of the underlying Watermark Generators.
startPeriodicWatermarkEmits
in interface TimestampsAndWatermarks<T>
public void stopPeriodicWatermarkEmits()
TimestampsAndWatermarks
stopPeriodicWatermarkEmits
in interface TimestampsAndWatermarks<T>
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.