public override void VisitNodePropertyChanges(long id, IEnumerator <StorageProperty> added, IEnumerator <StorageProperty> changed, IntIterable removed) { removed.each(propId => _recordState.nodeRemoveProperty(id, propId)); while (changed.MoveNext()) { StorageProperty prop = changed.Current; _recordState.nodeChangeProperty(id, prop.PropertyKeyId(), prop.Value()); } while (added.MoveNext()) { StorageProperty prop = added.Current; _recordState.nodeAddProperty(id, prop.PropertyKeyId(), prop.Value()); } }
public override void VisitGraphPropertyChanges(IEnumerator <StorageProperty> added, IEnumerator <StorageProperty> changed, IntIterable removed) { removed.each(_recordState.graphRemoveProperty); while (changed.MoveNext()) { StorageProperty prop = changed.Current; _recordState.graphChangeProperty(prop.PropertyKeyId(), prop.Value()); } while (added.MoveNext()) { StorageProperty prop = added.Current; _recordState.graphAddProperty(prop.PropertyKeyId(), prop.Value()); } }