Exemplo n.º 1
0
 public void accept(Visitor visitor) {
   super.accept(visitor);
   if (labelDiffSets != null) {
     visitor.visitLabelChanges(getId(), labelDiffSets.getAdded(), labelDiffSets.getRemoved());
   }
   if (relationshipsAdded != null || relationshipsRemoved != null) {
     visitor.visitRelationshipChanges(getId(), relationshipsAdded, relationshipsRemoved);
   }
 }
Exemplo n.º 2
0
 public void clearIndexDiffs(long nodeId) {
   if (indexDiffs != null) {
     for (DiffSets<Long> diff : indexDiffs) {
       if (diff.getAdded().contains(nodeId)) {
         diff.remove(nodeId);
       } else if (diff.getRemoved().contains(nodeId)) {
         diff.add(nodeId);
       }
     }
   }
 }