@Internal public class NewPartition extends java.lang.Object implements java.io.Serializable
Parent partitions stop streaming and record their change stream continuation tokens. The tokens are collected to continue the stream from the new partition.
Constructor and Description |
---|
NewPartition(com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange partition,
java.util.List<com.google.cloud.bigtable.data.v2.models.ChangeStreamContinuationToken> changeStreamContinuationTokens,
Instant lowWatermark) |
NewPartition(com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange partition,
java.util.List<com.google.cloud.bigtable.data.v2.models.ChangeStreamContinuationToken> changeStreamContinuationTokens,
Instant lowWatermark,
Instant lastUpdated) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.List<com.google.cloud.bigtable.data.v2.models.ChangeStreamContinuationToken> |
getChangeStreamContinuationTokens() |
Instant |
getLastUpdated() |
Instant |
getLowWatermark() |
java.util.List<com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange> |
getParentPartitions() |
com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange |
getPartition() |
NewPartition |
getSingleTokenNewPartition(com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange parentPartition)
Return a new NewPartition that only contains one token that matches the parentPartition.
|
int |
hashCode() |
java.lang.String |
toString() |
public NewPartition(com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange partition, java.util.List<com.google.cloud.bigtable.data.v2.models.ChangeStreamContinuationToken> changeStreamContinuationTokens, Instant lowWatermark, Instant lastUpdated)
public NewPartition(com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange partition, java.util.List<com.google.cloud.bigtable.data.v2.models.ChangeStreamContinuationToken> changeStreamContinuationTokens, Instant lowWatermark)
public com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange getPartition()
public java.util.List<com.google.cloud.bigtable.data.v2.models.ChangeStreamContinuationToken> getChangeStreamContinuationTokens()
public Instant getLowWatermark()
public java.util.List<com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange> getParentPartitions()
public Instant getLastUpdated()
@Nullable public NewPartition getSingleTokenNewPartition(com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange parentPartition)
parentPartition
- to parent partition to find within the tokens.public boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object