Class StreamProgress
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.bigtable.changestreams.restriction.StreamProgress
-
- All Implemented Interfaces:
java.io.Serializable
@Internal public class StreamProgress extends java.lang.Object implements java.io.SerializablePosition forReadChangeStreamPartitionProgressTracker. This represents contains information that allows a stream, along with thePartitionRecordto 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StreamProgress()StreamProgress(@Nullable com.google.cloud.bigtable.data.v2.models.ChangeStreamContinuationToken token, org.joda.time.Instant estimatedLowWatermark, java.math.BigDecimal throughputEstimate, org.joda.time.Instant lastRunTimestamp, boolean isHeartbeat)StreamProgress(@Nullable com.google.cloud.bigtable.data.v2.models.CloseStream closeStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(@Nullable java.lang.Object o)@Nullable com.google.cloud.bigtable.data.v2.models.CloseStreamgetCloseStream()@Nullable com.google.cloud.bigtable.data.v2.models.ChangeStreamContinuationTokengetCurrentToken()@Nullable org.joda.time.InstantgetEstimatedLowWatermark()@Nullable org.joda.time.InstantgetLastRunTimestamp()@Nullable java.math.BigDecimalgetThroughputEstimate()inthashCode()booleanisEmpty()booleanisFailToLock()booleanisHeartbeat()voidsetFailToLock(boolean failToLock)java.lang.StringtoString()
-
-
-
Constructor Detail
-
StreamProgress
public StreamProgress()
-
StreamProgress
public StreamProgress(@Nullable com.google.cloud.bigtable.data.v2.models.ChangeStreamContinuationToken token, org.joda.time.Instant estimatedLowWatermark, java.math.BigDecimal throughputEstimate, org.joda.time.Instant lastRunTimestamp, boolean isHeartbeat)
-
StreamProgress
public StreamProgress(@Nullable com.google.cloud.bigtable.data.v2.models.CloseStream closeStream)
-
-
Method Detail
-
getCurrentToken
public @Nullable com.google.cloud.bigtable.data.v2.models.ChangeStreamContinuationToken getCurrentToken()
-
getEstimatedLowWatermark
public @Nullable org.joda.time.Instant getEstimatedLowWatermark()
-
getThroughputEstimate
public @Nullable java.math.BigDecimal getThroughputEstimate()
-
getLastRunTimestamp
public @Nullable org.joda.time.Instant getLastRunTimestamp()
-
getCloseStream
public @Nullable com.google.cloud.bigtable.data.v2.models.CloseStream getCloseStream()
-
isFailToLock
public boolean isFailToLock()
-
setFailToLock
public void setFailToLock(boolean failToLock)
-
isHeartbeat
public boolean isHeartbeat()
-
isEmpty
public boolean isEmpty()
-
equals
public boolean equals(@Nullable java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-