public static class WatermarkEstimators.Manual extends java.lang.Object implements ManualWatermarkEstimator<Instant>
ManualWatermarkEstimator.| 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. |
void |
setWatermark(Instant watermark)
Sets a timestamp before or at the timestamps of all future elements produced by the associated
DoFn.
|
public Manual(Instant watermark)
public void setWatermark(Instant watermark)
ManualWatermarkEstimatorThis 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.
setWatermark in interface ManualWatermarkEstimator<Instant>public Instant currentWatermark()
WatermarkEstimatorcurrentWatermark in interface WatermarkEstimator<Instant>public Instant getState()
WatermarkEstimatorWatermarkEstimator 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>