public static class WatermarkEstimators.WallTime extends java.lang.Object implements WatermarkEstimator<Instant>
Note that this watermark estimator expects wall times of all machines performing the processing to be close to each other. Any machine with a wall clock that is far in the past may cause the pipeline to perform poorly while a watermark far in the future may cause records to be marked as late.
Modifier and Type | Method and Description |
---|---|
Instant |
currentWatermark()
Return estimated output watermark.
|
Instant |
getState()
Get current state of the
WatermarkEstimator instance, which can be used to recreate the
WatermarkEstimator when processing the restriction. |
public WallTime(Instant watermark)
public Instant currentWatermark()
WatermarkEstimator
currentWatermark
in interface WatermarkEstimator<Instant>
public Instant getState()
WatermarkEstimator
WatermarkEstimator
instance, which can be used to recreate the
WatermarkEstimator
when processing the restriction. See DoFn.NewWatermarkEstimator
for additional details.
The internal state of the estimator must not be mutated by this method.
The state returned must not be mutated.
getState
in interface WatermarkEstimator<Instant>