result.columnAs("COUNT").iterator().next()

Or

result.iterator().next().get("COUNT")

Sent from mobile device

Am 12.05.2014 um 07:02 schrieb frandro <[email protected]>:

> The cypher is as follows.
> MATCH src-[:KNOWS*1..3]-dest WHERE src.name = 'ux' RETURN COUNT(dest.name) AS 
> COUNT
> 
> The following is the result of ExecutionResult.dumpToString(). It's returned 
> with ExecutionEngine.
> 
> +-------+
> | COUNT |
> +-------+
> | 11    |
> +-------+
> 
> How do I access the value of an count() query in Java?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to