Package com.tinkerpop.gremlin.process.util

Examples of com.tinkerpop.gremlin.process.util.FunctionRing


    private boolean onGraphComputer = false;
    protected Function<Traverser<S>, Map<String, E>> selectFunction;

    public SelectStep(final Traversal traversal, final List<String> selectLabels, final Function... stepFunctions) {
        super(traversal);
        this.functionRing = new FunctionRing(stepFunctions);
        this.wasEmpty = selectLabels.size() == 0;
        this.selectLabels = this.wasEmpty ? TraversalHelper.getLabelsUpTo(this, this.traversal) : selectLabels;
        this.selectFunction = traverser -> {
            final S start = traverser.get();
            final Map<String, E> bindings = new LinkedHashMap<>();
View Full Code Here


    private final String sideEffectKey;

    public TreeStep(final Traversal traversal, final String sideEffectKey, final Function... branchFunctions) {
        super(traversal);
        this.sideEffectKey = null == sideEffectKey ? this.getLabel() : sideEffectKey;
        this.functionRing = new FunctionRing(branchFunctions);
        TraversalHelper.verifySideEffectKeyIsNotAStepLabel(this.sideEffectKey, this.traversal);
        this.traversal.sideEffects().registerSupplierIfAbsent(this.sideEffectKey, Tree::new);
        this.setConsumer(traverser -> {
            Tree depth = this.getTraversal().sideEffects().get(this.sideEffectKey);
            final Path path = traverser.path();
View Full Code Here

    private final FunctionRing functionRing;

    public PathStep(final Traversal traversal, final Function... pathFunctions) {
        super(traversal);
        this.functionRing = (pathFunctions.length == 0) ? null : new FunctionRing(pathFunctions);
        this.setFunction(traverser -> {
            if (null == this.functionRing)
                return traverser.path();
            else {
                final Path path = MutablePath.make();
View Full Code Here

TOP

Related Classes of com.tinkerpop.gremlin.process.util.FunctionRing

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.