Address Shooky's comment for PR #1624

This commit is contained in:
yabinmeng
2023-10-16 14:58:51 -05:00
parent 1242ff2dd0
commit ec7f5be03b
2 changed files with 2 additions and 6 deletions

View File

@@ -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();

View File

@@ -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