void afterRollbackForInEdges() { Preconditions.checkState(this.schema.getTopology().isSqlWriteLockHeldByCurrentThread(), "VertexLabel.afterRollback must hold the write lock"); super.afterRollback(); for (Iterator<EdgeLabel> it = this.uncommittedInEdgeLabels.values().iterator(); it.hasNext(); ) { EdgeLabel edgeLabel = it.next(); edgeLabel.afterRollbackInEdges(this); it.remove(); } for (EdgeLabel edgeLabel : this.inEdgeLabels.values()) { edgeLabel.afterRollbackInEdges(this); } }
void afterRollbackForInEdges() { Preconditions.checkState(this.schema.getTopology().isSqlWriteLockHeldByCurrentThread(), "VertexLabel.afterRollback must hold the write lock"); super.afterRollback(); for (Iterator<EdgeLabel> it = this.uncommittedInEdgeLabels.values().iterator(); it.hasNext(); ) { EdgeLabel edgeLabel = it.next(); edgeLabel.afterRollbackInEdges(this); it.remove(); } for (EdgeLabel edgeLabel : this.inEdgeLabels.values()) { edgeLabel.afterRollbackInEdges(this); } }
void afterRollbackInEdges(VertexLabel vertexLabel) { Preconditions.checkState(this.getSchema().getTopology().isSqlWriteLockHeldByCurrentThread(), "EdgeLabel.afterRollback must hold the write lock"); super.afterRollback(); this.uncommittedInVertexLabels.remove(vertexLabel); this.uncommittedRemovedInVertexLabels.remove(vertexLabel); }
void afterRollbackInEdges(VertexLabel vertexLabel) { Preconditions.checkState(this.getSchema().getTopology().isSqlWriteLockHeldByCurrentThread(), "EdgeLabel.afterRollback must hold the write lock"); super.afterRollback(); this.uncommittedInVertexLabels.remove(vertexLabel); this.uncommittedRemovedInVertexLabels.remove(vertexLabel); }
void afterRollbackOutEdges(VertexLabel vertexLabel) { Preconditions.checkState(this.getSchema().getTopology().isSqlWriteLockHeldByCurrentThread(), "EdgeLabel.afterRollback must hold the write lock"); super.afterRollback(); this.uncommittedOutVertexLabels.remove(vertexLabel); this.uncommittedRemovedOutVertexLabels.remove(vertexLabel); }
void afterRollbackForOutEdges() { Preconditions.checkState(this.schema.getTopology().isSqlWriteLockHeldByCurrentThread(), "VertexLabel.afterRollback must hold the write lock"); super.afterRollback(); for (Iterator<EdgeLabel> it = this.uncommittedOutEdgeLabels.values().iterator(); it.hasNext(); ) { EdgeLabel edgeLabel = it.next(); it.remove(); //It is important to first remove the EdgeLabel from the iterator as the EdgeLabel's outVertex is still // present and its needed for the hashCode method which is invoked during the it.remove() edgeLabel.afterRollbackOutEdges(this); } for (EdgeLabel edgeLabel : this.outEdgeLabels.values()) { edgeLabel.afterRollbackOutEdges(this); } }
void afterRollbackOutEdges(VertexLabel vertexLabel) { Preconditions.checkState(this.getSchema().getTopology().isSqlWriteLockHeldByCurrentThread(), "EdgeLabel.afterRollback must hold the write lock"); super.afterRollback(); this.uncommittedOutVertexLabels.remove(vertexLabel); this.uncommittedRemovedOutVertexLabels.remove(vertexLabel); }
void afterRollbackForOutEdges() { Preconditions.checkState(this.schema.getTopology().isSqlWriteLockHeldByCurrentThread(), "VertexLabel.afterRollback must hold the write lock"); super.afterRollback(); for (Iterator<EdgeLabel> it = this.uncommittedOutEdgeLabels.values().iterator(); it.hasNext(); ) { EdgeLabel edgeLabel = it.next(); it.remove(); //It is important to first remove the EdgeLabel from the iterator as the EdgeLabel's outVertex is still // present and its needed for the hashCode method which is invoked during the it.remove() edgeLabel.afterRollbackOutEdges(this); } for (EdgeLabel edgeLabel : this.outEdgeLabels.values()) { edgeLabel.afterRollbackOutEdges(this); } }