Result, and use
GraphDatabaseService.execute(String, Map) instead.@Deprecated public class ExecutionResult extends Object implements org.neo4j.graphdb.ResourceIterable<Map<String,Object>>, org.neo4j.graphdb.Result
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.org.neo4j.graphdb.Result.ResultRow, org.neo4j.graphdb.Result.ResultVisitor<VisitationException extends Exception>| Constructor and Description |
|---|
ExecutionResult(org.neo4j.cypher.ExtendedExecutionResult projection)
Deprecated.
Constructor used by the Cypher framework.
|
| Modifier and Type | Method and Description |
|---|---|
<VisitationException extends Exception> |
accept(org.neo4j.graphdb.Result.ResultVisitor<VisitationException> visitor)
Deprecated.
|
void |
close()
Deprecated.
|
<T> org.neo4j.graphdb.ResourceIterator<T> |
columnAs(String n)
Deprecated.
Returns an iterator with the result objects from a single column of the result set.
|
List<String> |
columns()
Deprecated.
The exact names used to represent each column in the result set.
|
String |
dumpToString()
Deprecated.
Provides a textual representation of the query result.
|
PlanDescription |
executionPlanDescription()
Deprecated.
Returns a string representation of the query plan used to produce this result.
|
org.neo4j.graphdb.ExecutionPlanDescription |
getExecutionPlanDescription()
Deprecated.
|
Iterable<org.neo4j.graphdb.Notification> |
getNotifications()
Deprecated.
|
org.neo4j.graphdb.QueryExecutionType |
getQueryExecutionType()
Deprecated.
|
QueryStatistics |
getQueryStatistics()
Deprecated.
Returns statistics about this result.
|
boolean |
hasNext()
Deprecated.
|
org.neo4j.graphdb.ResourceIterator<Map<String,Object>> |
iterator()
Deprecated.
Returns an iterator over the return clause of the query.
|
Map<String,Object> |
next()
Deprecated.
|
void |
remove()
Deprecated.
|
String |
resultAsString()
Deprecated.
|
Stream<Map<String,Object>> |
stream()
Deprecated.
|
String |
toString()
Deprecated.
|
void |
toString(PrintWriter writer)
Deprecated.
|
void |
writeAsStringTo(PrintWriter writer)
Deprecated.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorforEachRemainingpublic ExecutionResult(org.neo4j.cypher.ExtendedExecutionResult projection)
ExecutionEngine.execute(String).projection - Execution result projection to use.public <T> org.neo4j.graphdb.ResourceIterator<T> columnAs(String n)
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.
columnAs in interface org.neo4j.graphdb.ResultT - desired type cast for the result objectsn - exact name of the column, as it appeared in the original queryClassCastException - when the result object can not be cast to the requested typeorg.neo4j.graphdb.NotFoundException - when the column name does not appear in the original querypublic org.neo4j.graphdb.QueryExecutionType getQueryExecutionType()
getQueryExecutionType in interface org.neo4j.graphdb.Resultpublic List<String> columns()
columns in interface org.neo4j.graphdb.Resultpublic String dumpToString()
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.
public QueryStatistics getQueryStatistics()
getQueryStatistics in interface org.neo4j.graphdb.Resultpublic PlanDescription executionPlanDescription()
public void toString(PrintWriter writer)
public org.neo4j.graphdb.ResourceIterator<Map<String,Object>> iterator()
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.
public boolean hasNext()
public void close()
close in interface AutoCloseableclose in interface org.neo4j.graphdb.Resourceclose in interface org.neo4j.graphdb.ResourceIterator<Map<String,Object>>close in interface org.neo4j.graphdb.Resultpublic org.neo4j.graphdb.ExecutionPlanDescription getExecutionPlanDescription()
getExecutionPlanDescription in interface org.neo4j.graphdb.Resultpublic String resultAsString()
resultAsString in interface org.neo4j.graphdb.Resultpublic void writeAsStringTo(PrintWriter writer)
writeAsStringTo in interface org.neo4j.graphdb.Resultpublic void remove()
public <VisitationException extends Exception> void accept(org.neo4j.graphdb.Result.ResultVisitor<VisitationException> visitor) throws VisitationException extends Exception
accept in interface org.neo4j.graphdb.ResultVisitationException extends Exceptionpublic Iterable<org.neo4j.graphdb.Notification> getNotifications()
getNotifications in interface org.neo4j.graphdb.ResultCopyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.