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
-
Constructor Summary
ConstructorDescriptionInternalSummaryCounters
(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 aInternalSummaryCounters
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of theconstraintsAdded
record component.int
Returns the value of theconstraintsRemoved
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
hashCode()
Returns a hash code value for this object.int
Returns the value of theindexesAdded
record component.int
Returns the value of theindexesRemoved
record component.int
Returns the value of thelabelsAdded
record component.int
Returns the value of thelabelsRemoved
record component.int
Returns the value of thenodesCreated
record component.int
Returns the value of thenodesDeleted
record component.int
Returns the value of thepropertiesSet
record component.int
Returns the value of therelationshipsCreated
record component.int
Returns the value of therelationshipsDeleted
record component.int
Returns the value of thesystemUpdates
record 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 aInternalSummaryCounters
record class.- Parameters:
nodesCreated
- the value for thenodesCreated
record componentnodesDeleted
- the value for thenodesDeleted
record componentrelationshipsCreated
- the value for therelationshipsCreated
record componentrelationshipsDeleted
- the value for therelationshipsDeleted
record componentpropertiesSet
- the value for thepropertiesSet
record componentlabelsAdded
- the value for thelabelsAdded
record componentlabelsRemoved
- the value for thelabelsRemoved
record componentindexesAdded
- the value for theindexesAdded
record componentindexesRemoved
- the value for theindexesRemoved
record componentconstraintsAdded
- the value for theconstraintsAdded
record componentconstraintsRemoved
- the value for theconstraintsRemoved
record componentsystemUpdates
- the value for thesystemUpdates
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 interfaceSummaryCounters
- 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 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 thenodesCreated
record component.- Specified by:
nodesCreated
in interfaceSummaryCounters
- Returns:
- the value of the
nodesCreated
record component
-
nodesDeleted
public int nodesDeleted()Returns the value of thenodesDeleted
record component.- Specified by:
nodesDeleted
in interfaceSummaryCounters
- Returns:
- the value of the
nodesDeleted
record component
-
relationshipsCreated
public int relationshipsCreated()Returns the value of therelationshipsCreated
record component.- Specified by:
relationshipsCreated
in interfaceSummaryCounters
- Returns:
- the value of the
relationshipsCreated
record component
-
relationshipsDeleted
public int relationshipsDeleted()Returns the value of therelationshipsDeleted
record component.- Specified by:
relationshipsDeleted
in interfaceSummaryCounters
- Returns:
- the value of the
relationshipsDeleted
record component
-
propertiesSet
public int propertiesSet()Returns the value of thepropertiesSet
record component.- Specified by:
propertiesSet
in interfaceSummaryCounters
- Returns:
- the value of the
propertiesSet
record component
-
labelsAdded
public int labelsAdded()Returns the value of thelabelsAdded
record component.- Specified by:
labelsAdded
in interfaceSummaryCounters
- Returns:
- the value of the
labelsAdded
record component
-
labelsRemoved
public int labelsRemoved()Returns the value of thelabelsRemoved
record component.- Specified by:
labelsRemoved
in interfaceSummaryCounters
- Returns:
- the value of the
labelsRemoved
record component
-
indexesAdded
public int indexesAdded()Returns the value of theindexesAdded
record component.- Specified by:
indexesAdded
in interfaceSummaryCounters
- Returns:
- the value of the
indexesAdded
record component
-
indexesRemoved
public int indexesRemoved()Returns the value of theindexesRemoved
record component.- Specified by:
indexesRemoved
in interfaceSummaryCounters
- Returns:
- the value of the
indexesRemoved
record component
-
constraintsAdded
public int constraintsAdded()Returns the value of theconstraintsAdded
record component.- Specified by:
constraintsAdded
in interfaceSummaryCounters
- Returns:
- the value of the
constraintsAdded
record component
-
constraintsRemoved
public int constraintsRemoved()Returns the value of theconstraintsRemoved
record component.- Specified by:
constraintsRemoved
in interfaceSummaryCounters
- Returns:
- the value of the
constraintsRemoved
record component
-
systemUpdates
public int systemUpdates()Returns the value of thesystemUpdates
record component.- Specified by:
systemUpdates
in interfaceSummaryCounters
- Returns:
- the value of the
systemUpdates
record component
-