Class StreamProgress

  • All Implemented Interfaces:
    java.io.Serializable

    @Internal
    public class StreamProgress
    extends java.lang.Object
    implements java.io.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:
    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)  
    • 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object