Search in sources :

Example 1 with TemplateFormat

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;
}
Also used : TemplateFormat(io.nosqlbench.adapters.stdout.TemplateFormat)

Aggregations

TemplateFormat (io.nosqlbench.adapters.stdout.TemplateFormat)1