public final class ChooseStep<S,E,M> extends BranchStep<S,E,M>
ComputerAwareStep.EndStep<S>
branchTraversal, traversalOptions, traversalPickOptions
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
Constructor and Description |
---|
ChooseStep(Traversal.Admin traversal,
Traversal.Admin<S,?> predicateTraversal,
Traversal.Admin<S,E> trueChoice,
Traversal.Admin<S,E> falseChoice) |
ChooseStep(Traversal.Admin traversal,
Traversal.Admin<S,M> choiceTraversal) |
Modifier and Type | Method and Description |
---|---|
void |
addChildOption(M pickToken,
Traversal.Admin<S,E> traversalOption)
|
clone, computerAlgorithm, getGlobalChildren, getLocalChildren, getRequirements, hashCode, reset, setBranchTraversal, setTraversal, standardAlgorithm, toString
onGraphComputer, processNextStart
addLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStep
finalize, getClass, notify, notifyAll, wait, wait, wait
addGlobalChild, addLocalChild, asStep, close, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChild
atMaster, atMaster
forEachRemaining, remove
public ChooseStep(Traversal.Admin traversal, Traversal.Admin<S,M> choiceTraversal)
public ChooseStep(Traversal.Admin traversal, Traversal.Admin<S,?> predicateTraversal, Traversal.Admin<S,E> trueChoice, Traversal.Admin<S,E> falseChoice)
public void addChildOption(M pickToken, Traversal.Admin<S,E> traversalOption)
TraversalOptionParent
Pick
or Merge
. This traversal may be of local
or global scope depending on the step implementation that works with option()
.addChildOption
in interface TraversalOptionParent<M,S,E>
addChildOption
in class BranchStep<S,E,M>
Copyright © 2013–2023 Apache Software Foundation. All rights reserved.