Class StreamProgress
java.lang.Object
org.apache.beam.sdk.io.gcp.bigtable.changestreams.restriction.StreamProgress
- All Implemented Interfaces:
Serializable
Position for
ReadChangeStreamPartitionProgressTracker. This represents contains
information that allows a stream, along with the PartitionRecord to resume from a
checkpoint.
It should contain either a continuation token which represents a position in the stream, or it can contain a close stream message which represents an end to the stream and the DoFn needs to stop.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStreamProgress(@Nullable ChangeStreamContinuationToken token, Instant estimatedLowWatermark, BigDecimal throughputEstimate, Instant lastRunTimestamp, boolean isHeartbeat) StreamProgress(@Nullable CloseStream closeStream) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanisEmpty()booleanbooleanvoidsetFailToLock(boolean failToLock) toString()
-
Constructor Details
-
StreamProgress
public StreamProgress() -
StreamProgress
public StreamProgress(@Nullable ChangeStreamContinuationToken token, Instant estimatedLowWatermark, BigDecimal throughputEstimate, Instant lastRunTimestamp, boolean isHeartbeat) -
StreamProgress
-
-
Method Details
-
getCurrentToken
-
getEstimatedLowWatermark
-
getThroughputEstimate
-
getLastRunTimestamp
-
getCloseStream
-
isFailToLock
public boolean isFailToLock() -
setFailToLock
public void setFailToLock(boolean failToLock) -
isHeartbeat
public boolean isHeartbeat() -
isEmpty
public boolean isEmpty() -
equals
-
hashCode
public int hashCode() -
toString
-