Class WatermarkEstimators.Manual
java.lang.Object
org.apache.beam.sdk.transforms.splittabledofn.WatermarkEstimators.Manual
- All Implemented Interfaces:
ManualWatermarkEstimator<Instant>,WatermarkEstimator<Instant>
- Enclosing class:
WatermarkEstimators
public static class WatermarkEstimators.Manual
extends Object
implements ManualWatermarkEstimator<Instant>
Concrete implementation of a
ManualWatermarkEstimator.-
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.voidsetWatermark(Instant watermark) Sets a timestamp before or at the timestamps of all future elements produced by the associated DoFn.
-
Constructor Details
-
Manual
-
-
Method Details
-
setWatermark
Description copied from interface:ManualWatermarkEstimatorSets a timestamp before or at the timestamps of all future elements produced by the associated DoFn.This can be approximate. If records are output that violate this guarantee, they will be considered late, which will affect how they will be processed. See watermarks and late data for more information on late data and how to handle it.
However, this value should be as late as possible. Downstream windows may not be able to close until this watermark passes their end.
- Specified by:
setWatermarkin interfaceManualWatermarkEstimator<Instant>
-
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>
-