Wolfgang-Schuetzelhofer / jcypher

Java access to Neo4J graph databases at multiple levels of abstraction
Apache License 2.0
86 stars 15 forks source link

support multiclause stored procedure statements and result columns of type array #29

Closed mpetris closed 7 years ago

mpetris commented 7 years ago

Hi Wolfgang,

this pull request addresses two issues: 1) A Settings member to switch off the inclusion of the rule planner. The Neo4J rule planner doesn't support a stored procedure call to be mixed with other clauses. I tried to follow your style for concurrency sensitive settings here. 2) If the resultset column is of type array I need the full content of that array and not just the first field. So I simply removed the corresponding code. An example would be the query match (n) return labels(n), count(n) which gives me a resultset with two columns. First column of type string array and second column of type int, counting the number of nodes grouped by (non overlapping) labelsets. So the first column is an array of node labels which I can then retrieve with a JcCollection.

Thanks for considering this pull request.

Best, Marco

Wolfgang-Schuetzelhofer commented 7 years ago

Hi Marco, I have merged your pull request. Thanks for your contribution.

Best regards, Wolfgang