Examples of Neo4jCypherIterator


Examples of com.tinkerpop.gremlin.neo4j.process.graph.step.util.Neo4jCypherIterator

        this.setFunction(traverser -> {
            final S s = traverser.get();
            parameters.put(START, s);
            final ExecutionResult result = cypher.execute(query, parameters);
            final ResourceIterator<Map<String, Object>> itty = result.iterator();
            return itty.hasNext() ? new Neo4jCypherIterator(itty, graph) : Collections.emptyIterator();
        });
    }
View Full Code Here

Examples of com.tinkerpop.gremlin.neo4j.process.graph.step.util.Neo4jCypherIterator

     * @return a fluent Gremlin traversal
     */
    public Neo4jTraversal cypher(final String query, final Map<String, Object> parameters) {
        this.tx().readWrite();
        final Neo4jTraversal traversal = Neo4jTraversal.of(this);
        traversal.addStep(new StartStep(traversal, new Neo4jCypherIterator(this.cypher.execute(query, parameters).iterator(), this)));
        return traversal;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.