Class InternalSummaryCounters

java.lang.Object
org.neo4j.driver.internal.summary.InternalSummaryCounters
All Implemented Interfaces:
SummaryCounters

public class InternalSummaryCounters extends Object implements SummaryCounters
  • Field Details

  • Constructor Details

    • InternalSummaryCounters

      public InternalSummaryCounters(int nodesCreated, int nodesDeleted, int relationshipsCreated, int relationshipsDeleted, int propertiesSet, int labelsAdded, int labelsRemoved, int indexesAdded, int indexesRemoved, int constraintsAdded, int constraintsRemoved, int systemUpdates)
  • Method Details

    • containsUpdates

      public boolean containsUpdates()
      Description copied from interface: SummaryCounters
      Whether there were any updates at all, eg. any of the counters are greater than 0.
      Specified by:
      containsUpdates in interface SummaryCounters
      Returns:
      true if the query made any updates
    • nodesCreated

      public int nodesCreated()
      Specified by:
      nodesCreated in interface SummaryCounters
      Returns:
      number of nodes created.
    • nodesDeleted

      public int nodesDeleted()
      Specified by:
      nodesDeleted in interface SummaryCounters
      Returns:
      number of nodes deleted.
    • relationshipsCreated

      public int relationshipsCreated()
      Specified by:
      relationshipsCreated in interface SummaryCounters
      Returns:
      number of relationships created.
    • relationshipsDeleted

      public int relationshipsDeleted()
      Specified by:
      relationshipsDeleted in interface SummaryCounters
      Returns:
      number of relationships deleted.
    • propertiesSet

      public int propertiesSet()
      Specified by:
      propertiesSet in interface SummaryCounters
      Returns:
      number of properties (on both nodes and relationships) set.
    • labelsAdded

      public int labelsAdded()
      Specified by:
      labelsAdded in interface SummaryCounters
      Returns:
      number of labels added to nodes.
    • labelsRemoved

      public int labelsRemoved()
      Specified by:
      labelsRemoved in interface SummaryCounters
      Returns:
      number of labels removed from nodes.
    • indexesAdded

      public int indexesAdded()
      Specified by:
      indexesAdded in interface SummaryCounters
      Returns:
      number of indexes added to the schema.
    • indexesRemoved

      public int indexesRemoved()
      Specified by:
      indexesRemoved in interface SummaryCounters
      Returns:
      number of indexes removed from the schema.
    • constraintsAdded

      public int constraintsAdded()
      Specified by:
      constraintsAdded in interface SummaryCounters
      Returns:
      number of constraints added to the schema.
    • constraintsRemoved

      public int constraintsRemoved()
      Specified by:
      constraintsRemoved in interface SummaryCounters
      Returns:
      number of constraints removed from the schema.
    • containsSystemUpdates

      public boolean containsSystemUpdates()
      Description copied from interface: SummaryCounters
      If the query updated the system graph in any way, this method will return true,
      Specified by:
      containsSystemUpdates in interface SummaryCounters
      Returns:
      true if the system graph has been updated.
    • systemUpdates

      public int systemUpdates()
      Specified by:
      systemUpdates in interface SummaryCounters
      Returns:
      the number of system updates performed by this query.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object