@Alpha public interface WatermarkStorage
| Modifier and Type | Method and Description |
|---|---|
void |
commitWatermarks(Iterable<CheckpointableWatermark> watermarks)
Commit a batch of watermarks to storage.
|
Map<String,CheckpointableWatermark> |
getCommittedWatermarks(Class<? extends CheckpointableWatermark> watermarkClass,
Iterable<String> sourcePartitions)
Retrieve previously committed watermarks.
|
void commitWatermarks(Iterable<CheckpointableWatermark> watermarks) throws IOException
IOExceptionMap<String,CheckpointableWatermark> getCommittedWatermarks(Class<? extends CheckpointableWatermark> watermarkClass, Iterable<String> sourcePartitions) throws IOException
watermarkClass: - the specific class that corresponds to the watermark expectedsourcePartitions: - a list of source partitions for whom we're retrieving committed watermarks.IOException