Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the result, freeing up any resources held by the result.
|
<T> org.neo4j.graphdb.ResourceIterator<T> |
columnAs(String name)
Returns an iterator with the 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.
|
boolean |
hasNext()
Denotes there being more rows available in this result.
|
Map<String,Object> |
next()
Returns the next row in this result.
|
void |
remove()
Removing rows from the result is not supported.
|
String |
resultAsString()
Provides a textual representation of the query result.
|
void |
writeAsStringTo(PrintWriter writer)
Provides a textual representation of the query result to the provided
PrintWriter . |
forEachRemaining
List<String> columns()
<T> org.neo4j.graphdb.ResourceIterator<T> columnAs(String name)
To ensure that any resources, including transactions bound to it, are properly closed, the iterator must
either be fully exhausted, or the close()
method must be
called.
T
- desired type cast for the result objectsname
- exact name of the column, as it appeared in the original queryClassCastException
- when the result object can not be cast to the requested typeNotFoundException
- when the column name does not appear in the original queryboolean hasNext()
void close()
next-method
.close
in interface AutoCloseable
close
in interface org.neo4j.graphdb.Resource
close
in interface org.neo4j.graphdb.ResourceIterator<Map<String,Object>>
String resultAsString()
The execution result represented by this object will be consumed in its entirety after this method is called. Calling any of the other iterating methods on it should not be expected to return any results.
void writeAsStringTo(PrintWriter writer)
PrintWriter
.
The execution result represented by this object will be consumed in its entirety after this method is called. Calling any of the other iterating methods on it should not be expected to return any results.
writer
- the PrintWriter
to receive the textual representation of the query result.Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.