public void apply(final CacheAccessBackDoor cacheAccess) {
   nodes.visitKeys(
       new PrimitiveLongVisitor<RuntimeException>() {
         @Override
         public boolean visited(long nodeId) {
           cacheAccess.patchDeletedRelationshipNodes(nodeId, RelationshipHoles.this);
           return false;
         }
       });
 }
 /**
  * Keeps track of the given relationship and makes use of it later in {@link #accept(long)} and
  * {@link #apply(long, long)}
  *
  * @param deletedRelationship relationship that has been deleted in this transaction.
  */
 public void deleted(RelationshipRecord deletedRelationship) {
   nodes.add(deletedRelationship.getFirstNode());
   nodes.add(deletedRelationship.getSecondNode());
   relationships.put(deletedRelationship.getId(), deletedRelationship);
 }
示例#3
0
 @Override
 public void remove(PrimitiveLongSet nodeIds) throws IOException {
   nodeIds.visitKeys(removeFromLucene);
 }