@Override public void addStart(final Traverser.Admin<S> start) { if (!this.locked) this.applyStrategies(); if (!this.steps.isEmpty()) this.steps.get(0).addStart(start); }
/** * Add a single {@link Traverser.Admin} object to the head of the traversal. * Users should typically not need to call this method. For dynamic inject of data, they should use {@link org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.InjectStep}. * * @param start a traverser to add to the traversal */ public default void addStart(final Traverser.Admin<S> start) { if (!this.isLocked()) this.applyStrategies(); this.getStartStep().addStart(start); }
currentStep.addStart(traverser); previousStep = currentStep;
@Override public void addStart(final Traverser.Admin<S> start) { if (!this.locked) this.applyStrategies(); if (!this.steps.isEmpty()) this.steps.get(0).addStart(start); }
currentStep.addStart(traverser); previousStep = currentStep;
else { // add the vertex to head of the traversal final Traversal.Admin<Vertex, ?> clone = traversal.clone(); // need a unique clone for each vertex to isolate the computation clone.getStartStep().addStart(clone.getTraverserGenerator().generate(vertexWritable.get(), graphStep, 1l)); return (Step) clone.getEndStep();
/** * Add a single {@link Traverser.Admin} object to the head of the traversal. * Users should typically not need to call this method. For dynamic inject of data, they should use {@link org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.InjectStep}. * * @param start a traverser to add to the traversal */ public default void addStart(final Traverser.Admin<S> start) { if (!this.isLocked()) this.applyStrategies(); this.getStartStep().addStart(start); }
currentStep.addStart(traverser); previousStep = currentStep;
currentStep.addStart(traverser); previousStep = currentStep;
else { // add the vertex to head of the traversal final Traversal.Admin<Vertex, ?> clone = traversal.clone(); // need a unique clone for each vertex to isolate the computation clone.getStartStep().addStart(clone.getTraverserGenerator().generate(vertexWritable.get(), graphStep, 1l)); return (Step) clone.getEndStep();