Interface QueryStatistics


public interface QueryStatistics
Represents statistics about the effects of a query. If the query did not perform any updates, all the methods of this interface will return 0.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final QueryStatistics
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    If the query updated the system graph in any way, this method will return true,
    boolean
    If the query updated the graph in any way, this method will return true.
    int
    Returns the number of constraints added by this query.
    int
    Returns the number of constraints removed by this query.
    int
    Returns the number of indexes added by this query.
    int
    Returns the number of indexes removed by this query.
    int
    Returns the number of labels added to any node by this query.
    int
    Returns the number of labels removed from any node by this query.
    int
    Returns the number of nodes created by this query.
    int
    Returns the number of nodes deleted by this query.
    int
    Returns the number of properties set by this query.
    int
    Returns the number of relationships created by this query.
    int
    Returns the number of relationships deleted by this query.
    int
    Returns the number of system updates performed by this query.
  • Field Details

  • Method Details

    • getNodesCreated

      int getNodesCreated()
      Returns the number of nodes created by this query.
      Returns:
      the number of nodes created by this query.
    • getNodesDeleted

      int getNodesDeleted()
      Returns the number of nodes deleted by this query.
      Returns:
      the number of nodes deleted by this query.
    • getRelationshipsCreated

      int getRelationshipsCreated()
      Returns the number of relationships created by this query.
      Returns:
      the number of relationships created by this query.
    • getRelationshipsDeleted

      int getRelationshipsDeleted()
      Returns the number of relationships deleted by this query.
      Returns:
      the number of relationships deleted by this query.
    • getPropertiesSet

      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.
    • getLabelsAdded

      int getLabelsAdded()
      Returns the number of labels added to any node by this query.
      Returns:
      the number of labels added to any node by this query.
    • getLabelsRemoved

      int getLabelsRemoved()
      Returns the number of labels removed from any node by this query.
      Returns:
      the number of labels removed from any node by this query.
    • getIndexesAdded

      int getIndexesAdded()
      Returns the number of indexes added by this query.
      Returns:
      the number of indexes added by this query.
    • getIndexesRemoved

      int getIndexesRemoved()
      Returns the number of indexes removed by this query.
      Returns:
      the number of indexes removed by this query.
    • getConstraintsAdded

      int getConstraintsAdded()
      Returns the number of constraints added by this query.
      Returns:
      the number of constraints added by this query.
    • getConstraintsRemoved

      int getConstraintsRemoved()
      Returns the number of constraints removed by this query.
      Returns:
      the number of constraints removed by this query.
    • getSystemUpdates

      int getSystemUpdates()
      Returns the number of system updates performed by this query.
      Returns:
      the number of system updates performed by this query.
    • containsUpdates

      boolean containsUpdates()
      If the query updated the graph in any way, this method will return true.
      Returns:
      if the graph has been updated.
    • containsSystemUpdates

      boolean containsSystemUpdates()
      If the query updated the system graph in any way, this method will return true,
      Returns:
      if the system graph has been updated.