mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
Address Shooky's comment for PR #1624
This commit is contained in:
@@ -29,6 +29,7 @@ public abstract class JDBCBaseOpDispenser extends BaseOpDispenser<JDBCOp, JDBCSp
|
||||
protected final JDBCSpace jdbcSpace;
|
||||
protected boolean isDdlStatement;
|
||||
protected final boolean isPreparedStatement;
|
||||
protected final String verifierKeyName;
|
||||
|
||||
public JDBCBaseOpDispenser(DriverAdapter<JDBCOp, JDBCSpace> adapter,
|
||||
JDBCSpace jdbcSpace,
|
||||
@@ -36,8 +37,8 @@ public abstract class JDBCBaseOpDispenser extends BaseOpDispenser<JDBCOp, JDBCSp
|
||||
super(adapter, op);
|
||||
this.jdbcSpace = jdbcSpace;
|
||||
this.isPreparedStatement = op.getStaticConfigOr("prepared", false);
|
||||
this.verifierKeyName = op.getStaticConfigOr("verifier-key", "");
|
||||
}
|
||||
|
||||
public void checkShutdownEntry(long cycle) {
|
||||
if (cycle == (jdbcSpace.getTotalCycleNum()-1)) {
|
||||
jdbcSpace.enterShutdownStage();
|
||||
|
||||
@@ -39,9 +39,6 @@ public class JDBCDMLOpDispenser extends JDBCBaseOpDispenser {
|
||||
private final LongFunction<String> pStmtSqlStrFunc;
|
||||
private final LongFunction<List<Object>> pStmtValListFunc;
|
||||
|
||||
// Only for Vector relevancy score testing (Vector read statement)
|
||||
private final String verifierKeyName;
|
||||
|
||||
public JDBCDMLOpDispenser(DriverAdapter<JDBCOp, JDBCSpace> adapter,
|
||||
JDBCSpace jdbcSpace,
|
||||
ParsedOp op,
|
||||
@@ -68,8 +65,6 @@ public class JDBCDMLOpDispenser extends JDBCBaseOpDispenser {
|
||||
}
|
||||
return pStmtValListObj;
|
||||
};
|
||||
|
||||
this.verifierKeyName = op.getStaticConfigOr("verifier-key", "");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user