Class InitialPartition
java.lang.Object
org.apache.beam.sdk.io.gcp.spanner.changestreams.model.InitialPartition
Utility class to determine initial partition constants and methods.
The initial partition has the artificial token defined by PARTITION_TOKEN
and it has no parent tokens.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isInitialPartition
(String partitionToken) Verifies if the given partition token is the initial partition.
-
Field Details
-
PARTITION_TOKEN
The token of the initial partition. This is an artificial token for the Connector and it is not recognised by Cloud Spanner.- See Also:
-
-
Constructor Details
-
InitialPartition
public InitialPartition()
-
-
Method Details
-
isInitialPartition
Verifies if the given partition token is the initial partition.- Parameters:
partitionToken
- the partition token to be checked- Returns:
- true if the given token is the initial partition, and false otherwise
-