Search in sources :

Example 1 with Database

use of alluxio.grpc.table.Database in project alluxio by Alluxio.

the class TableMasterJournalIntegrationTest method checkDb.

private void checkDb(TableMaster tableMaster, String dbName, DatabaseInfo dbInfo) throws IOException {
    Database db = tableMaster.getDatabase(dbName);
    assertEquals(db.getDbName(), dbName);
    assertEquals(db.getOwnerName(), dbInfo.getOwnerName());
    assertEquals(db.getOwnerType(), dbInfo.getOwnerType());
    assertEquals(db.getComment(), dbInfo.getComment());
    assertEquals(db.getLocation(), dbInfo.getLocation());
    assertEquals(db.getParameterMap(), dbInfo.getParameters());
}
Also used : Database(alluxio.grpc.table.Database) TestDatabase(alluxio.master.table.TestDatabase)

Aggregations

Database (alluxio.grpc.table.Database)1 TestDatabase (alluxio.master.table.TestDatabase)1