private void AddLabelEntriesTo(long nodeId, LongSet labelIds, ICollection <LabelEntry> target) { labelIds.each(labelId => { try { LabelEntry labelEntryView = new LabelEntryView(this, nodeId, _transaction.tokenRead().nodeLabelName(toIntExact(labelId))); target.Add(labelEntryView); } catch (LabelNotFoundKernelException e) { throw new System.InvalidOperationException("Nonexisting label was modified for node " + nodeId, e); } }); }
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected: //ORIGINAL LINE: public void visitNodeLabelChanges(long id, final org.eclipse.collections.api.set.primitive.LongSet added, final org.eclipse.collections.api.set.primitive.LongSet removed) public override void VisitNodeLabelChanges(long id, LongSet added, LongSet removed) { // record the state changes to be made to the store removed.each(label => _recordState.removeLabelFromNode(label, id)); added.each(label => _recordState.addLabelToNode(label, id)); }