Class NewPartition
java.lang.Object
org.apache.beam.sdk.io.gcp.bigtable.changestreams.model.NewPartition
- All Implemented Interfaces:
Serializable
Represent new partition as a result of splits and merges.
Parent partitions stop streaming and record their change stream continuation tokens. The tokens are collected to continue the stream from the new partition.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNewPartition
(com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange partition, List<com.google.cloud.bigtable.data.v2.models.ChangeStreamContinuationToken> changeStreamContinuationTokens, Instant lowWatermark) NewPartition
(com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange partition, List<com.google.cloud.bigtable.data.v2.models.ChangeStreamContinuationToken> changeStreamContinuationTokens, Instant lowWatermark, Instant lastUpdated) -
Method Summary
Modifier and TypeMethodDescriptionboolean
List
<com.google.cloud.bigtable.data.v2.models.ChangeStreamContinuationToken> List
<com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange> com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange
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()
toString()
-
Constructor Details
-
NewPartition
-
NewPartition
-
-
Method Details
-
getPartition
public com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange getPartition() -
getChangeStreamContinuationTokens
public List<com.google.cloud.bigtable.data.v2.models.ChangeStreamContinuationToken> getChangeStreamContinuationTokens() -
getLowWatermark
-
getParentPartitions
-
getLastUpdated
-
getSingleTokenNewPartition
@Nullable public 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. If the parentPartition does not exist, return null.- Parameters:
parentPartition
- to parent partition to find within the tokens.- Returns:
- a NewPartition with one token with parentPartition. null otherwise.
-
equals
-
hashCode
public int hashCode() -
toString
-