|
Neo4j Community | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neo4j.cypher.javacompat.ExecutionResult
public class ExecutionResult
Holds Cypher query result sets, in tabular form. Each row of the result is a map
of column name to result object. Each column name correlates directly
with the terms used in the "return" clause of the Cypher query.
The result objects could be Nodes
,
Relationships
or java primitives.
Either iterate directly over the ExecutionResult to retrieve each row of the result
set, or use columnAs()
to access a single column with result objects
cast to a type.
Constructor Summary | |
---|---|
ExecutionResult(org.neo4j.cypher.ExecutionResult projection)
Constructor used by the Cypher framework. |
Method Summary | ||
---|---|---|
|
columnAs(String n)
Provides result objects from a single column of the result set. |
|
List<String> |
columns()
The exact names used to represent each column in the result set. |
|
Iterator<Map<String,Object>> |
iterator()
|
|
String |
toString()
|
|
void |
toString(PrintWriter writer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExecutionResult(org.neo4j.cypher.ExecutionResult projection)
ExecutionEngine.execute(org.neo4j.cypher.internal.commands.Query)
.
projection
- Method Detail |
---|
public <T> Iterator<T> columnAs(String n)
T
- desired type cast for the result objectsn
- exact name of the column, as it appeared in the original query
ClassCastException
- when the result object can not be cast to the requested type
NotFoundException
- when the column name does not appear in the original querypublic List<String> columns()
public Iterator<Map<String,Object>> iterator()
iterator
in interface Iterable<Map<String,Object>>
public String toString()
toString
in class Object
public void toString(PrintWriter writer)
|
Neo4j Community | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |