in hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/tx/GraphTransaction.java [228:262]
protected void reset() {
super.reset();
// Clear mutation
if (this.addedVertices == null || !this.addedVertices.isEmpty()) {
this.addedVertices = InsertionOrderUtil.newMap();
}
if (this.removedVertices == null || !this.removedVertices.isEmpty()) {
this.removedVertices = InsertionOrderUtil.newMap();
}
if (this.updatedVertices == null || !this.updatedVertices.isEmpty()) {
this.updatedVertices = InsertionOrderUtil.newMap();
}
if (this.addedEdges == null || !this.addedEdges.isEmpty()) {
this.addedEdges = InsertionOrderUtil.newMap();
}
if (this.removedEdges == null || !this.removedEdges.isEmpty()) {
this.removedEdges = InsertionOrderUtil.newMap();
}
if (this.updatedEdges == null || !this.updatedEdges.isEmpty()) {
this.updatedEdges = InsertionOrderUtil.newMap();
}
if (this.addedProps == null || !this.addedProps.isEmpty()) {
this.addedProps = InsertionOrderUtil.newSet();
}
if (this.removedProps == null || !this.removedProps.isEmpty()) {
this.removedProps = InsertionOrderUtil.newSet();
}
if (this.updatedOldestProps == null ||
!this.updatedOldestProps.isEmpty()) {
this.updatedOldestProps = InsertionOrderUtil.newSet();
}
}