Package com.tinkerpop.gremlin.process.traversers

Examples of com.tinkerpop.gremlin.process.traversers.SimpleTraverser


    }

    private void assertBranchFactor(final double branchFactor,
                                    final Traversal t,
                                    final Iterator inputs) {
        Traverser start = new SimpleTraverser(null, null);
        MatchStep.TraversalWrapper w = new MatchStep.TraversalWrapper(t, "a", "b");
        MatchStep.TraversalUpdater updater = new MatchStep.TraversalUpdater<>(w, inputs, start, "x");
        while (updater.hasNext()) {
            updater.next();
        }
View Full Code Here


        Object mutatingSeed = this.reducer.get().getValue0().get();
        final BiFunction function = this.reducer.get().getValue1();
        while (values.hasNext()) {
            mutatingSeed = function.apply(mutatingSeed, values.next());
        }
        emitter.emit(key, new SimpleTraverser(mutatingSeed, null));
    }
View Full Code Here

TOP

Related Classes of com.tinkerpop.gremlin.process.traversers.SimpleTraverser

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.