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); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public org.neo4j.internal.kernel.api.ExplicitIndexWrite indexWrite() throws org.neo4j.internal.kernel.api.exceptions.InvalidTransactionTypeKernelException public override ExplicitIndexWrite IndexWrite() { return(Internal.indexWrite()); }