use of io.nosqlbench.adapters.stdout.TemplateFormat in project nosqlbench by nosqlbench.
the class StdoutActivity method genStatementTemplate.
private String genStatementTemplate(Set<String> keySet) {
TemplateFormat format = getParams().getOptionalString("format").map(TemplateFormat::valueOf).orElse(TemplateFormat.assignments);
boolean ensureNewline = getParams().getOptionalBoolean("newline").orElse(true);
String stmtTemplate = format.format(ensureNewline, new ArrayList<>(keySet));
return stmtTemplate;
}
Aggregations