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(Range.ByteStringRange partition, List<ChangeStreamContinuationToken> changeStreamContinuationTokens, Instant lowWatermark) NewPartition(Range.ByteStringRange partition, List<ChangeStreamContinuationToken> changeStreamContinuationTokens, Instant lowWatermark, Instant lastUpdated) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetSingleTokenNewPartition(Range.ByteStringRange parentPartition) Return a new NewPartition that only contains one token that matches the parentPartition.inthashCode()toString()
-
Constructor Details
-
NewPartition
public NewPartition(Range.ByteStringRange partition, List<ChangeStreamContinuationToken> changeStreamContinuationTokens, Instant lowWatermark, Instant lastUpdated) -
NewPartition
public NewPartition(Range.ByteStringRange partition, List<ChangeStreamContinuationToken> changeStreamContinuationTokens, Instant lowWatermark)
-
-
Method Details
-
getPartition
-
getChangeStreamContinuationTokens
-
getLowWatermark
-
getParentPartitions
-
getLastUpdated
-
getSingleTokenNewPartition
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
-