Package com.tinkerpop.gremlin.neo4j.process.graph.step.util

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


     * @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

Related Classes of com.tinkerpop.gremlin.neo4j.process.graph.step.util.Neo4jCypherIterator

Copyright © 2018 www.massapicom. 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.