Module org.neo4j.driver
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 -
Constructor Summary
ConstructorsConstructorDescriptionInternalSummaryCounters(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 aInternalSummaryCountersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theconstraintsAddedrecord component.intReturns the value of theconstraintsRemovedrecord component.booleanIf the query updated the system graph in any way, this method will return true,booleanWhether there were any updates at all, e.g.booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theindexesAddedrecord component.intReturns the value of theindexesRemovedrecord component.intReturns the value of thelabelsAddedrecord component.intReturns the value of thelabelsRemovedrecord component.intReturns the value of thenodesCreatedrecord component.intReturns the value of thenodesDeletedrecord component.intReturns the value of thepropertiesSetrecord component.intReturns the value of therelationshipsCreatedrecord component.intReturns the value of therelationshipsDeletedrecord component.intReturns the value of thesystemUpdatesrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
EMPTY_STATS
-
-
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 aInternalSummaryCountersrecord class.- Parameters:
nodesCreated- the value for thenodesCreatedrecord componentnodesDeleted- the value for thenodesDeletedrecord componentrelationshipsCreated- the value for therelationshipsCreatedrecord componentrelationshipsDeleted- the value for therelationshipsDeletedrecord componentpropertiesSet- the value for thepropertiesSetrecord componentlabelsAdded- the value for thelabelsAddedrecord componentlabelsRemoved- the value for thelabelsRemovedrecord componentindexesAdded- the value for theindexesAddedrecord componentindexesRemoved- the value for theindexesRemovedrecord componentconstraintsAdded- the value for theconstraintsAddedrecord componentconstraintsRemoved- the value for theconstraintsRemovedrecord componentsystemUpdates- the value for thesystemUpdatesrecord component
-
-
Method Details
-
containsUpdates
public boolean containsUpdates()Description copied from interface:SummaryCountersWhether there were any updates at all, e.g. any of the counters are greater than 0.- Specified by:
containsUpdatesin interfaceSummaryCounters- Returns:
- true if the query made any updates
-
containsSystemUpdates
public boolean containsSystemUpdates()Description copied from interface:SummaryCountersIf the query updated the system graph in any way, this method will return true,- Specified by:
containsSystemUpdatesin interfaceSummaryCounters- Returns:
- true if the system graph has been updated.
-
equals
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 '=='. -
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. -
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. -
nodesCreated
public int nodesCreated()Returns the value of thenodesCreatedrecord component.- Specified by:
nodesCreatedin interfaceSummaryCounters- Returns:
- the value of the
nodesCreatedrecord component
-
nodesDeleted
public int nodesDeleted()Returns the value of thenodesDeletedrecord component.- Specified by:
nodesDeletedin interfaceSummaryCounters- Returns:
- the value of the
nodesDeletedrecord component
-
relationshipsCreated
public int relationshipsCreated()Returns the value of therelationshipsCreatedrecord component.- Specified by:
relationshipsCreatedin interfaceSummaryCounters- Returns:
- the value of the
relationshipsCreatedrecord component
-
relationshipsDeleted
public int relationshipsDeleted()Returns the value of therelationshipsDeletedrecord component.- Specified by:
relationshipsDeletedin interfaceSummaryCounters- Returns:
- the value of the
relationshipsDeletedrecord component
-
propertiesSet
public int propertiesSet()Returns the value of thepropertiesSetrecord component.- Specified by:
propertiesSetin interfaceSummaryCounters- Returns:
- the value of the
propertiesSetrecord component
-
labelsAdded
public int labelsAdded()Returns the value of thelabelsAddedrecord component.- Specified by:
labelsAddedin interfaceSummaryCounters- Returns:
- the value of the
labelsAddedrecord component
-
labelsRemoved
public int labelsRemoved()Returns the value of thelabelsRemovedrecord component.- Specified by:
labelsRemovedin interfaceSummaryCounters- Returns:
- the value of the
labelsRemovedrecord component
-
indexesAdded
public int indexesAdded()Returns the value of theindexesAddedrecord component.- Specified by:
indexesAddedin interfaceSummaryCounters- Returns:
- the value of the
indexesAddedrecord component
-
indexesRemoved
public int indexesRemoved()Returns the value of theindexesRemovedrecord component.- Specified by:
indexesRemovedin interfaceSummaryCounters- Returns:
- the value of the
indexesRemovedrecord component
-
constraintsAdded
public int constraintsAdded()Returns the value of theconstraintsAddedrecord component.- Specified by:
constraintsAddedin interfaceSummaryCounters- Returns:
- the value of the
constraintsAddedrecord component
-
constraintsRemoved
public int constraintsRemoved()Returns the value of theconstraintsRemovedrecord component.- Specified by:
constraintsRemovedin interfaceSummaryCounters- Returns:
- the value of the
constraintsRemovedrecord component
-
systemUpdates
public int systemUpdates()Returns the value of thesystemUpdatesrecord component.- Specified by:
systemUpdatesin interfaceSummaryCounters- Returns:
- the value of the
systemUpdatesrecord component
-