Neo4j

org.neo4j.cypher.javacompat
Class QueryStatistics

java.lang.Object
  extended by org.neo4j.cypher.javacompat.QueryStatistics

public class QueryStatistics
extends Object

Holds statistics for the execution of a query.


Method Summary
 boolean containsUpdates()
          If the query updated the graph in any way, this method will return true.
 int getDeletedNodes()
          Returns the number of nodes deleted by this query.
 int getDeletedRelationships()
          Returns the number of relationships deleted by this query.
 int getNodesCreated()
          Returns the number of nodes created by this query.
 int getPropertiesSet()
          Returns the number of properties set by this query.
 int getRelationshipsCreated()
          Returns the number of relationships created by this query.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNodesCreated

public int getNodesCreated()
Returns the number of nodes created by this query.

Returns:
the number of nodes created by this query.

getRelationshipsCreated

public int getRelationshipsCreated()
Returns the number of relationships created by this query.

Returns:
the number of relationships created by this query.

getPropertiesSet

public int getPropertiesSet()
Returns the number of properties set by this query. Setting a property to the same value again still counts towards this.

Returns:
the number of properties set by this query.

getDeletedNodes

public int getDeletedNodes()
Returns the number of nodes deleted by this query.

Returns:
the number of nodes deleted by this query.

getDeletedRelationships

public int getDeletedRelationships()
Returns the number of relationships deleted by this query.

Returns:
the number of relationships deleted by this query.

containsUpdates

public boolean containsUpdates()
If the query updated the graph in any way, this method will return true.

Returns:
if the graph has been updated.

Neo4j

Copyright © 2002-2014 The Neo4j Graph Database Project. All Rights Reserved.