remove extraneous parameters

This commit is contained in:
Jonathan Shook
2021-07-13 16:12:22 -05:00
parent 3b4be09446
commit 14477040de

View File

@@ -251,7 +251,7 @@ public class CqlActivity extends SimpleActivity implements Activity, ActivityDef
simpleStatement.setIdempotent(i);
});
template = new ReadyCQLStatementTemplate(fconfig, getSession(), simpleStatement, ratio,
parsed.getName(), parameterized, null, null);
parsed.getName(), parameterized);
}
Element params = parsed.getParamReader();
@@ -282,7 +282,7 @@ public class CqlActivity extends SimpleActivity implements Activity, ActivityDef
.map(s -> s.split("[,: ]"))
.map(Save::new)
.ifPresent(save_op -> {
psummary.append(" save=>").append(save_op.toString());
psummary.append(" save=>").append(save_op);
template.addRowCycleOperators(save_op);
});
@@ -291,7 +291,7 @@ public class CqlActivity extends SimpleActivity implements Activity, ActivityDef
.stream().flatMap(Arrays::stream)
.map(ResultSetCycleOperators::newOperator)
.forEach(rso -> {
psummary.append(" rsop=>").append(rso.toString());
psummary.append(" rsop=>").append(rso);
template.addResultSetOperators(rso);
});
@@ -300,7 +300,7 @@ public class CqlActivity extends SimpleActivity implements Activity, ActivityDef
.stream().flatMap(Arrays::stream)
.map(RowCycleOperators::newOperator)
.forEach(ro -> {
psummary.append(" rowop=>").append(ro.toString());
psummary.append(" rowop=>").append(ro);
template.addRowCycleOperators(ro);
});
@@ -326,7 +326,7 @@ public class CqlActivity extends SimpleActivity implements Activity, ActivityDef
VerificationMetrics vmetrics = getVerificationMetrics();
RowDifferencer.ThreadLocalWrapper differencer = new RowDifferencer.ThreadLocalWrapper(vmetrics, expected, diffType);
psummary.append(" rowop=>verify-fields:").append(differencer.toString());
psummary.append(" rowop=>verify-fields:").append(differencer);
template.addResultSetOperators(new AssertSingleRowResultSet());
template.addRowCycleOperators(differencer);
@@ -348,7 +348,7 @@ public class CqlActivity extends SimpleActivity implements Activity, ActivityDef
template.getContextualBindings().getBindingsTemplate().addFieldBindings(stmtDef.getParsed().getBindPoints());
if (psummary.length() > 0) {
logger.info("statement named '" + stmtDef.getName() + "' has custom settings:" + psummary.toString());
logger.info("statement named '" + stmtDef.getName() + "' has custom settings:" + psummary);
}
planner.addOp(template.resolve(), ratio);