Class UdbContext


  • public class UdbContext
    extends java.lang.Object
    The context for the udb.
    • Constructor Detail

      • UdbContext

        public UdbContext​(UnderDatabaseRegistry udbRegistry,
                          alluxio.client.file.FileSystem fileSystem,
                          java.lang.String type,
                          java.lang.String connectionUri,
                          java.lang.String udbDbName,
                          java.lang.String dbName)
        Creates an instance.
        Parameters:
        udbRegistry - the udb registry
        fileSystem - the alluxio fs client
        type - the db type
        connectionUri - the connection uri for the udb
        udbDbName - name of the database in the udb
        dbName - name of the database in Alluxio
    • Method Detail

      • getDbName

        public java.lang.String getDbName()
        Returns:
        the db name in Alluxio
      • getFileSystem

        public alluxio.client.file.FileSystem getFileSystem()
        Returns:
        the alluxio fs client
      • getConnectionUri

        public java.lang.String getConnectionUri()
        Returns:
        the connection uri for the udb
      • getUdbDbName

        public java.lang.String getUdbDbName()
        Returns:
        the db name in Udb
      • getTableLocation

        public alluxio.AlluxioURI getTableLocation​(java.lang.String tableName)
        Parameters:
        tableName - the table name
        Returns:
        the AlluxioURI for the table location for the specified table name