Class 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>".
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NameGenerator

        public NameGenerator()
    • 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