Search in sources :

Example 1 with ListValue

use of org.neo4j.driver.internal.value.ListValue 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);
}
Also used : HashMap(java.util.HashMap) ListValue(org.neo4j.driver.internal.value.ListValue) MapValue(org.neo4j.driver.internal.value.MapValue) Value(org.neo4j.driver.Value) ListValue(org.neo4j.driver.internal.value.ListValue) MapValue(org.neo4j.driver.internal.value.MapValue)

Aggregations

HashMap (java.util.HashMap)1 Value (org.neo4j.driver.Value)1 ListValue (org.neo4j.driver.internal.value.ListValue)1 MapValue (org.neo4j.driver.internal.value.MapValue)1