@Experimental(value=SPLITTABLE_DO_FN) public interface WatermarkEstimator<WatermarkEstimatorStateT>
WatermarkEstimator which is used for estimating output watermarks of a splittable
DoFn. See WatermarkEstimators for commonly used watermark estimators.| Modifier and Type | Method and Description |
|---|---|
Instant |
currentWatermark()
Return estimated output watermark.
|
WatermarkEstimatorStateT |
getState()
Get current state of the
WatermarkEstimator instance, which can be used to recreate the
WatermarkEstimator when processing the restriction. |
Instant currentWatermark()
WatermarkEstimatorStateT getState()
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.