Class WatermarkEstimators.WallTime
java.lang.Object
org.apache.beam.sdk.transforms.splittabledofn.WatermarkEstimators.WallTime
- All Implemented Interfaces:
WatermarkEstimator<Instant>
- Enclosing class:
WatermarkEstimators
public static class WatermarkEstimators.WallTime
extends Object
implements WatermarkEstimator<Instant>
A watermark estimator that tracks wall time.
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn estimated output watermark.getState()Get current state of theWatermarkEstimatorinstance, which can be used to recreate theWatermarkEstimatorwhen processing the restriction.
-
Constructor Details
-
WallTime
-
-
Method Details
-
currentWatermark
Description copied from interface:WatermarkEstimatorReturn estimated output watermark. This method must return monotonically increasing watermarks across instances that are constructed from prior state.- Specified by:
currentWatermarkin interfaceWatermarkEstimator<Instant>
-
getState
Description copied from interface:WatermarkEstimatorGet current state of theWatermarkEstimatorinstance, which can be used to recreate theWatermarkEstimatorwhen processing the restriction. SeeDoFn.NewWatermarkEstimatorfor additional details.The internal state of the estimator must not be mutated by this method.
The state returned must not be mutated.
- Specified by:
getStatein interfaceWatermarkEstimator<Instant>
-