protected internal override long FetchNext() { Ktx.assertOpen(); while (Cursor.next()) { long reference = Cursor.relationshipReference(); if (Ktx.dataRead().relationshipExists(reference)) { return(reference); } else if (Ktx.securityContext().mode().allowsWrites()) { //remove it from index so it doesn't happen again try { RELATIONSHIP.remove(Ktx.indexWrite(), Name, reference); } catch (Exception e) when(e is ExplicitIndexNotFoundKernelException || e is InvalidTransactionTypeKernelException) { //ignore } } } Close(); return(NO_ID); }
public override void AssertOpen() { Internal.assertOpen(); }