public class BranchStep<S> extends AbstractStep<S,S> implements EngineDependent
| Modifier and Type | Class and Description |
|---|---|
static class |
BranchStep.GoToLabels<S> |
id, label, nextEnd, nextStep, previousStep, PROFILING_ENABLED, starts, traversal, traverserStepIdSetByChild| Constructor and Description |
|---|
BranchStep(Traversal traversal) |
| Modifier and Type | Method and Description |
|---|---|
BranchStep<S> |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
java.util.Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to function properly. |
void |
onEngine(TraversalEngine traversalEngine) |
Traverser<S> |
processNextStart() |
void |
setFunction(java.util.function.Function<Traverser<S>,java.util.Collection<java.lang.String>> function) |
java.lang.String |
toString() |
addStart, addStarts, getId, getLabel, getNextStep, getPreviousStep, getTraversal, hasNext, next, reset, setId, setLabel, setNextStep, setPreviousStep, setTraversalpublic BranchStep(Traversal traversal)
public java.util.Set<TraverserRequirement> getRequirements()
StepTraverserRequirement that must be met by the traverser in order for the step to function properly.
The provided default implements returns an empty set.getRequirements in interface Step<S,S>public Traverser<S> processNextStart()
processNextStart in class AbstractStep<S,S>public void onEngine(TraversalEngine traversalEngine)
onEngine in interface EngineDependentpublic BranchStep<S> clone() throws java.lang.CloneNotSupportedException
StepEmptyStep.public void setFunction(java.util.function.Function<Traverser<S>,java.util.Collection<java.lang.String>> function)
public java.lang.String toString()
toString in class AbstractStep<S,S>Copyright © 2013-2015 TinkerPop. All Rights Reserved.