Search in sources :

Example 11 with UdbContext

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);
}
Also used : UdbContext(alluxio.table.common.udb.UdbContext)

Aggregations

UdbContext (alluxio.table.common.udb.UdbContext)11 UdbConfiguration (alluxio.table.common.udb.UdbConfiguration)8 Test (org.junit.Test)6 Before (org.junit.Before)2 Journal (alluxio.proto.journal.Journal)1 CloseableIterator (alluxio.resource.CloseableIterator)1 UnderDatabaseRegistry (alluxio.table.common.udb.UnderDatabaseRegistry)1 Iterator (java.util.Iterator)1 NoSuchElementException (java.util.NoSuchElementException)1