use of org.neo4j.driver.internal.value.MapValue in project neo4j by neo4j.
the class OutputFormatterTest method buildOperator.
private Value buildOperator(String operator, long dbHits, long rows, Value child) {
Map<String, Value> operatorMap = new HashMap<>();
operatorMap.put("operatorType", Values.value(operator));
operatorMap.put("dbHits", Values.value(dbHits));
operatorMap.put("rows", Values.value(rows));
if (child != null) {
operatorMap.put("children", new ListValue(child));
}
return new MapValue(operatorMap);
}