Class NoOpWatermarkCache
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.spanner.changestreams.cache.NoOpWatermarkCache
-
- All Implemented Interfaces:
WatermarkCache
public class NoOpWatermarkCache extends java.lang.Object implements WatermarkCache
Synchronously compute the earliest partition watermark, by delegating the call toPartitionMetadataDao#getUnfinishedMinWatermark().
-
-
Constructor Summary
Constructors Constructor Description NoOpWatermarkCache(PartitionMetadataDao dao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.cloud.TimestampgetUnfinishedMinWatermark()Fetches the earliest partition watermark from the partition metadata table that is not in aPartitionMetadata.State.FINISHEDstate.
-
-
-
Constructor Detail
-
NoOpWatermarkCache
public NoOpWatermarkCache(PartitionMetadataDao dao)
-
-
Method Detail
-
getUnfinishedMinWatermark
@Nullable public com.google.cloud.Timestamp getUnfinishedMinWatermark()
Description copied from interface:WatermarkCacheFetches the earliest partition watermark from the partition metadata table that is not in aPartitionMetadata.State.FINISHEDstate.- Specified by:
getUnfinishedMinWatermarkin interfaceWatermarkCache- Returns:
- the earliest partition watermark which is not in a
PartitionMetadata.State.FINISHEDstate.
-
-