Class WaterMarkEventGenerator<T>
java.lang.Object
org.apache.pulsar.functions.windowing.WaterMarkEventGenerator<T>
- All Implemented Interfaces:
Runnable
Tracks tuples across input topics and periodically emits watermark events.
Watermark event timestamp is the minimum of the latest tuple timestamps
across all the input topics (minus the lag). Once a watermark event is emitted
any tuple coming with an earlier timestamp can be considered as late events.
-
Constructor Summary
ConstructorsConstructorDescriptionWaterMarkEventGenerator(WindowManager<T> windowManager, long intervalMs, long eventTsLagMs, Set<String> inputTopics, Context context) Creates a new WatermarkEventGenerator. -
Method Summary
-
Constructor Details
-
WaterMarkEventGenerator
public WaterMarkEventGenerator(WindowManager<T> windowManager, long intervalMs, long eventTsLagMs, Set<String> inputTopics, Context context) Creates a new WatermarkEventGenerator.- Parameters:
windowManager- The window manager this generator will submit watermark events tointervalMs- The generator will check if it should generate a watermark event with this intervalMseventTsLagMs- The max allowed lag behind the last watermark event before an event is considered lateinputTopics- The input topics this generator is expected to handle
-
-
Method Details