Class InitialPartition
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.spanner.changestreams.model.InitialPartition
-
public class InitialPartition extends java.lang.ObjectUtility class to determine initial partition constants and methods.The initial partition has the artificial token defined by
PARTITION_TOKENand it has no parent tokens.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPARTITION_TOKENThe token of the initial partition.
-
Constructor Summary
Constructors Constructor Description InitialPartition()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisInitialPartition(java.lang.String partitionToken)Verifies if the given partition token is the initial partition.
-
-
-
Field Detail
-
PARTITION_TOKEN
public static final java.lang.String 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:
- Constant Field Values
-
-
Method Detail
-
isInitialPartition
public static boolean isInitialPartition(java.lang.String partitionToken)
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
-
-