public class BranchStep<S,E,M> extends ComputerAwareStep<S,E> implements TraversalOptionParent<M,S,E>
ComputerAwareStep.EndStep<S>TraversalOptionParent.Pick| Modifier and Type | Field and Description |
|---|---|
protected Traversal.Admin<S,M> |
branchTraversal |
protected Map<M,List<Traversal.Admin<S,E>>> |
traversalOptions |
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild| Constructor and Description |
|---|
BranchStep(Traversal.Admin traversal) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGlobalChildOption(M pickToken,
Traversal.Admin<S,E> traversalOption) |
BranchStep<S,E,M> |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
protected Iterator<Traverser<E>> |
computerAlgorithm() |
List<Traversal.Admin<S,E>> |
getGlobalChildren() |
List<Traversal.Admin<S,M>> |
getLocalChildren() |
Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to function properly. |
int |
hashCode() |
void |
reset()
Reset the state of the step such that it has no incoming starts.
|
void |
setBranchTraversal(Traversal.Admin<S,M> branchTraversal) |
protected Iterator<Traverser<E>> |
standardAlgorithm() |
String |
toString() |
onEngine, processNextStartaddLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hasNext, next, removeLabel, setId, setNextStep, setPreviousStep, setTraversalfinalize, getClass, notify, notifyAll, wait, wait, waitaddGlobalChild, addLocalChild, asStep, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChildforEachRemaining, removeprotected Traversal.Admin<S,M> branchTraversal
public BranchStep(Traversal.Admin traversal)
public void setBranchTraversal(Traversal.Admin<S,M> branchTraversal)
public void addGlobalChildOption(M pickToken, Traversal.Admin<S,E> traversalOption)
addGlobalChildOption in interface TraversalOptionParent<M,S,E>public 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,E>public List<Traversal.Admin<S,E>> getGlobalChildren()
getGlobalChildren in interface TraversalParentpublic List<Traversal.Admin<S,M>> getLocalChildren()
getLocalChildren in interface TraversalParentprotected Iterator<Traverser<E>> standardAlgorithm()
standardAlgorithm in class ComputerAwareStep<S,E>protected Iterator<Traverser<E>> computerAlgorithm()
computerAlgorithm in class ComputerAwareStep<S,E>public BranchStep<S,E,M> clone()
StepEmptyStep.public int hashCode()
hashCode in class AbstractStep<S,E>public String toString()
toString in class AbstractStep<S,E>public void reset()
StepCopyright © 2013–2015 Apache Software Foundation. All rights reserved.