Record Class InternalSummaryCounters

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

public record 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) extends Record implements SummaryCounters
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    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)
    Creates an instance of a InternalSummaryCounters record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the constraintsAdded record component.
    int
    Returns the value of the constraintsRemoved record component.
    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.
    boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the indexesAdded record component.
    int
    Returns the value of the indexesRemoved record component.
    int
    Returns the value of the labelsAdded record component.
    int
    Returns the value of the labelsRemoved record component.
    int
    Returns the value of the nodesCreated record component.
    int
    Returns the value of the nodesDeleted record component.
    int
    Returns the value of the propertiesSet record component.
    int
    Returns the value of the relationshipsCreated record component.
    int
    Returns the value of the relationshipsDeleted record component.
    int
    Returns the value of the systemUpdates record component.
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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)
      Creates an instance of a InternalSummaryCounters record class.
      Parameters:
      nodesCreated - the value for the nodesCreated record component
      nodesDeleted - the value for the nodesDeleted record component
      relationshipsCreated - the value for the relationshipsCreated record component
      relationshipsDeleted - the value for the relationshipsDeleted record component
      propertiesSet - the value for the propertiesSet record component
      labelsAdded - the value for the labelsAdded record component
      labelsRemoved - the value for the labelsRemoved record component
      indexesAdded - the value for the indexesAdded record component
      indexesRemoved - the value for the indexesRemoved record component
      constraintsAdded - the value for the constraintsAdded record component
      constraintsRemoved - the value for the constraintsRemoved record component
      systemUpdates - the value for the systemUpdates record component
  • Method Details

    • containsUpdates

      public boolean containsUpdates()
      Description copied from interface: SummaryCounters
      Whether there were any updates at all, e.g. any of the counters are greater than 0.
      Specified by:
      containsUpdates in interface SummaryCounters
      Returns:
      true if the query made any updates
    • 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.
    • equals

      public boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • nodesCreated

      public int nodesCreated()
      Returns the value of the nodesCreated record component.
      Specified by:
      nodesCreated in interface SummaryCounters
      Returns:
      the value of the nodesCreated record component
    • nodesDeleted

      public int nodesDeleted()
      Returns the value of the nodesDeleted record component.
      Specified by:
      nodesDeleted in interface SummaryCounters
      Returns:
      the value of the nodesDeleted record component
    • relationshipsCreated

      public int relationshipsCreated()
      Returns the value of the relationshipsCreated record component.
      Specified by:
      relationshipsCreated in interface SummaryCounters
      Returns:
      the value of the relationshipsCreated record component
    • relationshipsDeleted

      public int relationshipsDeleted()
      Returns the value of the relationshipsDeleted record component.
      Specified by:
      relationshipsDeleted in interface SummaryCounters
      Returns:
      the value of the relationshipsDeleted record component
    • propertiesSet

      public int propertiesSet()
      Returns the value of the propertiesSet record component.
      Specified by:
      propertiesSet in interface SummaryCounters
      Returns:
      the value of the propertiesSet record component
    • labelsAdded

      public int labelsAdded()
      Returns the value of the labelsAdded record component.
      Specified by:
      labelsAdded in interface SummaryCounters
      Returns:
      the value of the labelsAdded record component
    • labelsRemoved

      public int labelsRemoved()
      Returns the value of the labelsRemoved record component.
      Specified by:
      labelsRemoved in interface SummaryCounters
      Returns:
      the value of the labelsRemoved record component
    • indexesAdded

      public int indexesAdded()
      Returns the value of the indexesAdded record component.
      Specified by:
      indexesAdded in interface SummaryCounters
      Returns:
      the value of the indexesAdded record component
    • indexesRemoved

      public int indexesRemoved()
      Returns the value of the indexesRemoved record component.
      Specified by:
      indexesRemoved in interface SummaryCounters
      Returns:
      the value of the indexesRemoved record component
    • constraintsAdded

      public int constraintsAdded()
      Returns the value of the constraintsAdded record component.
      Specified by:
      constraintsAdded in interface SummaryCounters
      Returns:
      the value of the constraintsAdded record component
    • constraintsRemoved

      public int constraintsRemoved()
      Returns the value of the constraintsRemoved record component.
      Specified by:
      constraintsRemoved in interface SummaryCounters
      Returns:
      the value of the constraintsRemoved record component
    • systemUpdates

      public int systemUpdates()
      Returns the value of the systemUpdates record component.
      Specified by:
      systemUpdates in interface SummaryCounters
      Returns:
      the value of the systemUpdates record component