Interface SummaryCounters

All Known Implementing Classes:
InternalSummaryCounters

@Immutable public interface SummaryCounters
Contains counters for various operations that a query triggered.
Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the number of constraints added to the schema.
    int
    Returns the number of constraints removed from the schema.
    boolean
    If the query updated the system graph in any way, this method will return true,
    boolean
    Whether there were any updates at all, e.g.
    int
    Returns the number of indexes added to the schema.
    int
    Returns the number of indexes removed from the schema.
    int
    Returns the number of labels added to nodes.
    int
    Returns the number of labels removed from nodes.
    int
    Returns the number of nodes created.
    int
    Returns the number of nodes deleted.
    int
    Returns the number of properties (on both nodes and relationships) set.
    int
    Returns the number of relationships created.
    int
    Returns the number of relationships deleted.
    int
    Returns the number of system updates performed by this query.
  • Method Details

    • containsUpdates

      boolean containsUpdates()
      Whether there were any updates at all, e.g. any of the counters are greater than 0.
      Returns:
      true if the query made any updates
    • nodesCreated

      int nodesCreated()
      Returns the number of nodes created.
      Returns:
      the number of nodes created
    • nodesDeleted

      int nodesDeleted()
      Returns the number of nodes deleted.
      Returns:
      the number of nodes deleted
    • relationshipsCreated

      int relationshipsCreated()
      Returns the number of relationships created.
      Returns:
      the number of relationships created
    • relationshipsDeleted

      int relationshipsDeleted()
      Returns the number of relationships deleted.
      Returns:
      the number of relationships deleted
    • propertiesSet

      int propertiesSet()
      Returns the number of properties (on both nodes and relationships) set.
      Returns:
      the number of properties (on both nodes and relationships) set
    • labelsAdded

      int labelsAdded()
      Returns the number of labels added to nodes.
      Returns:
      the number of labels added to nodes
    • labelsRemoved

      int labelsRemoved()
      Returns the number of labels removed from nodes.
      Returns:
      the number of labels removed from nodes
    • indexesAdded

      int indexesAdded()
      Returns the number of indexes added to the schema.
      Returns:
      the number of indexes added to the schema
    • indexesRemoved

      int indexesRemoved()
      Returns the number of indexes removed from the schema.
      Returns:
      the number of indexes removed from the schema
    • constraintsAdded

      int constraintsAdded()
      Returns the number of constraints added to the schema.
      Returns:
      the number of constraints added to the schema
    • constraintsRemoved

      int constraintsRemoved()
      Returns the number of constraints removed from the schema.
      Returns:
      the number of constraints removed from the schema
    • containsSystemUpdates

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

      int systemUpdates()
      Returns the number of system updates performed by this query.
      Returns:
      the number of system updates performed by this query