MCPcopy Create free account
hub / github.com/cmu-db/benchbase / getCatalog

Method getCatalog

src/main/java/com/oltpbenchmark/util/SQLUtil.java:545–555  ·  view source on GitHub ↗

Extract the catalog from the database.

(
      BenchmarkModule benchmarkModule, DatabaseType databaseType, Connection connection)

Source from the content-addressed store, hash-verified

543
544 /** Extract the catalog from the database. */
545 public static AbstractCatalog getCatalog(
546 BenchmarkModule benchmarkModule, DatabaseType databaseType, Connection connection)
547 throws SQLException {
548 switch (databaseType) {
549 case NOISEPAGE: // fall-through
550 case HSQLDB:
551 return getCatalogHSQLDB(benchmarkModule);
552 default:
553 return getCatalogDirect(databaseType, connection);
554 }
555 }
556
557 /**
558 * Create an in-memory instance of HSQLDB to extract all of the catalog information.

Callers 15

refreshCatalogMethod · 0.95
testCreateDatabaseMethod · 0.45
setUpMethod · 0.45
testGetDataDirMethod · 0.45
loadContestantsMethod · 0.45
loadLocationsMethod · 0.45
saveProfileMethod · 0.45
generateTableDataMethod · 0.45
loadTableMethod · 0.45
genSubscriberMethod · 0.45

Calls 2

getCatalogHSQLDBMethod · 0.95
getCatalogDirectMethod · 0.95

Tested by 4

testCreateDatabaseMethod · 0.36
setUpMethod · 0.36
testGetDataDirMethod · 0.36