Class NameGenerator
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.spanner.changestreams.NameGenerator
-
public class NameGenerator extends java.lang.Object
This class generates a unique name for the partition metadata table, which is created when the Connector is initialized.
-
-
Constructor Summary
Constructors Constructor Description NameGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
generatePartitionMetadataTableName(java.lang.String databaseId)
Generates an unique name for the partition metadata table in the form of"Metadata_<databaseId>_<uuid>"
.
-
-
-
Method Detail
-
generatePartitionMetadataTableName
public static java.lang.String generatePartitionMetadataTableName(java.lang.String databaseId)
Generates an unique name for the partition metadata table in the form of"Metadata_<databaseId>_<uuid>"
.- Parameters:
databaseId
- The database id where the table will be created- Returns:
- the unique generated name of the partition metadata table
-
-