Example #1
0
 @Override
 public DiffSets<IndexDescriptor> constraintIndexDiffSetsByLabel(long labelId) {
   if (hasLabelStatesMap()) {
     LabelState labelState = getState(labelStatesMap(), labelId, null);
     if (labelState != null) {
       return labelState.constraintIndexChanges();
     }
   }
   return DiffSets.emptyDiffSets();
 }
Example #2
0
 @Override
 public DiffSets<Long> nodesWithLabelChanged(long labelId) {
   if (hasLabelStatesMap()) {
     LabelState state = getState(labelStatesMap, labelId, null);
     if (null != state) {
       return state.getNodeDiffSets();
     }
   }
   return DiffSets.emptyDiffSets();
 }
Example #3
0
 @Override
 public DiffSets<IndexDescriptor> indexDiffSetsByLabel(long labelId) {
   if (hasLabelStatesMap()) {
     LabelState labelState = getState(labelStatesMap, labelId, null);
     if (null != labelState) {
       return labelState.indexChanges();
     }
   }
   return DiffSets.emptyDiffSets();
 }
Example #4
0
  @Override
  public Set<Long> nodesWithLabelAdded(long labelId) {
    if (hasLabelStatesMap()) {
      LabelState state = getState(labelStatesMap, labelId, null);
      if (null != state) {
        return state.getNodeDiffSets().getAdded();
      }
    }

    return Collections.emptySet();
  }