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

Method run

src/main/java/com/oltpbenchmark/api/LoaderThread.java:39–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 }
38
39 @Override
40 public final void run() {
41 beforeLoad();
42 try (Connection conn = benchmarkModule.makeConnection()) {
43 load(conn);
44 } catch (SQLException ex) {
45 SQLException next_ex = ex.getNextException();
46 String msg =
47 String.format(
48 "Unexpected error when loading %s database",
49 benchmarkModule.getBenchmarkName().toUpperCase());
50 LOG.error(msg, next_ex);
51 throw new RuntimeException(ex);
52 } finally {
53 afterLoad();
54 }
55 }
56
57 /**
58 * This is the method that each LoaderThread has to implement

Callers

nothing calls this directly

Calls 6

beforeLoadMethod · 0.95
loadMethod · 0.95
afterLoadMethod · 0.95
formatMethod · 0.80
makeConnectionMethod · 0.45
getBenchmarkNameMethod · 0.45

Tested by

no test coverage detected