Class GlobalWatermarkHolder
java.lang.Object
org.apache.beam.runners.spark.util.GlobalWatermarkHolder
A store to hold the global watermarks for a micro-batch.
For each source, holds a queue for the watermarks of each micro-batch that was read, and advances the watermarks according to the queue (first-in-first-out).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
AGlobalWatermarkHolder.SparkWatermarks
holds the watermarks and batch time relevant to a micro-batch input from a specific source.static class
Advance the WMs onBatchCompleted event. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
add
(int sourceId, GlobalWatermarkHolder.SparkWatermarks sparkWatermarks) static void
addAll
(Map<Integer, Queue<GlobalWatermarkHolder.SparkWatermarks>> sourceTimes) static void
advance()
Seeadvance(String)
.static void
clear()
Returns theBroadcast
containing theGlobalWatermarkHolder.SparkWatermarks
mapped to their sources.static long
-
Constructor Details
-
GlobalWatermarkHolder
public GlobalWatermarkHolder()
-
-
Method Details
-
add
-
addAll
-
getLastWatermarkedBatchTime
public static long getLastWatermarkedBatchTime() -
get
Returns theBroadcast
containing theGlobalWatermarkHolder.SparkWatermarks
mapped to their sources. -
advance
public static void advance()Seeadvance(String)
. -
clear
public static void clear()
-