use of alluxio.table.common.udb.UdbContext in project alluxio by Alluxio.
the class AlluxioCatalog method apply.
private void apply(alluxio.proto.journal.Table.AttachDbEntry entry) {
String udbType = entry.getUdbType();
String udbConnectionUri = entry.getUdbConnectionUri();
String udbDbName = entry.getUdbDbName();
String dbName = entry.getDbName();
CatalogContext catalogContext = new CatalogContext(mUdbRegistry, mLayoutRegistry);
UdbContext udbContext = new UdbContext(mUdbRegistry, mFileSystem, udbType, udbConnectionUri, udbDbName, dbName);
Database db = Database.create(catalogContext, udbContext, udbType, dbName, entry.getConfigMap());
mDBs.put(dbName, db);
}
Aggregations