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

Method initialize

src/main/java/com/oltpbenchmark/api/Procedure.java:59–71  ·  view source on GitHub ↗

Initialize all of the SQLStmt handles. This must be called separately from the constructor, otherwise we can't get access to all of our SQLStmts. @param @return

(DatabaseType dbType)

Source from the content-addressed store, hash-verified

57 * @return
58 */
59 @SuppressWarnings("unchecked")
60 protected final <T extends Procedure> T initialize(DatabaseType dbType) {
61 this.dbType = dbType;
62 this.name_stmt_xref = Procedure.getStatements(this);
63
64 if (LOG.isDebugEnabled()) {
65 LOG.debug(
66 String.format(
67 "Initialized %s with %d SQLStmts: %s",
68 this, this.name_stmt_xref.size(), this.name_stmt_xref.keySet()));
69 }
70 return ((T) this);
71 }
72
73 /** Return the name of this Procedure */
74 protected final String getProcedureName() {

Callers 2

testSetSQLDialectMethod · 0.95
getProceduresMethod · 0.95

Calls 3

getStatementsMethod · 0.95
formatMethod · 0.80
sizeMethod · 0.45

Tested by 1

testSetSQLDialectMethod · 0.76