//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public org.neo4j.graphdb.index.IndexHits<org.neo4j.graphdb.Node> query(org.neo4j.kernel.api.KernelTransaction ktx, String name, Object queryOrQueryObject, org.neo4j.graphdb.GraphDatabaseService graphDatabaseService) throws org.neo4j.internal.kernel.api.exceptions.explicitindex.ExplicitIndexNotFoundKernelException public IndexHits <Node> query(KernelTransaction ktx, string name, object queryOrQueryObject, GraphDatabaseService graphDatabaseService) { NodeExplicitIndexCursor cursor = ktx.Cursors().allocateNodeExplicitIndexCursor(); ktx.IndexRead().nodeExplicitIndexQuery(cursor, name, queryOrQueryObject); return(new CursorWrappingNodeIndexHits(cursor, graphDatabaseService, ktx, name)); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public org.neo4j.graphdb.index.IndexHits<org.neo4j.graphdb.Node> get(org.neo4j.kernel.api.KernelTransaction ktx, String name, String key, Object value, org.neo4j.graphdb.GraphDatabaseService graphDatabaseService) throws org.neo4j.internal.kernel.api.exceptions.explicitindex.ExplicitIndexNotFoundKernelException public IndexHits <Node> get(KernelTransaction ktx, string name, string key, object value, GraphDatabaseService graphDatabaseService) { NodeExplicitIndexCursor cursor = ktx.Cursors().allocateNodeExplicitIndexCursor(); ktx.IndexRead().nodeExplicitIndexLookup(cursor, name, key, value); return(new CursorWrappingNodeIndexHits(cursor, graphDatabaseService, ktx, name)); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public org.neo4j.graphdb.index.IndexHits<org.neo4j.graphdb.Relationship> get(org.neo4j.kernel.api.KernelTransaction ktx, String name, String key, Object value, org.neo4j.graphdb.GraphDatabaseService graphDatabaseService) throws org.neo4j.internal.kernel.api.exceptions.explicitindex.ExplicitIndexNotFoundKernelException public IndexHits <Relationship> get(KernelTransaction ktx, string name, string key, object value, GraphDatabaseService graphDatabaseService) { RelationshipExplicitIndexCursor cursor = ktx.Cursors().allocateRelationshipExplicitIndexCursor(); ktx.IndexRead().relationshipExplicitIndexLookup(cursor, name, key, value, -1, -1); return(new CursorWrappingRelationshipIndexHits(cursor, graphDatabaseService, ktx, name)); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public org.neo4j.graphdb.index.IndexHits<org.neo4j.graphdb.Relationship> query(org.neo4j.kernel.api.KernelTransaction ktx, String name, Object queryOrQueryObject, org.neo4j.graphdb.GraphDatabaseService graphDatabaseService) throws org.neo4j.internal.kernel.api.exceptions.explicitindex.ExplicitIndexNotFoundKernelException public IndexHits <Relationship> query(KernelTransaction ktx, string name, object queryOrQueryObject, GraphDatabaseService graphDatabaseService) { RelationshipExplicitIndexCursor cursor = ktx.Cursors().allocateRelationshipExplicitIndexCursor(); ktx.IndexRead().relationshipExplicitIndexQuery(cursor, name, queryOrQueryObject, -1, -1); return(new CursorWrappingRelationshipIndexHits(cursor, graphDatabaseService, ktx, name)); }
public override RelationshipIndex GetOrCreateRelationshipIndex(string indexName, IDictionary <string, string> customConfiguration) { KernelTransaction ktx = _transactionBridge.get(); try { using (Statement ignore = ktx.AcquireStatement()) { if (!ktx.IndexRead().relationshipExplicitIndexExists(indexName, customConfiguration)) { // There's a sub-o-meta thing here where we create index config, // and the index will itself share the same IndexConfigStore as us and pick up and use // that. We should pass along config somehow with calls. ktx.IndexWrite().relationshipExplicitIndexCreateLazily(indexName, customConfiguration); } return(new RelationshipExplicitIndexProxy(indexName, _gds, _transactionBridge)); } } catch (InvalidTransactionTypeKernelException e) { throw new ConstraintViolationException(e.Message, e); } }