public final class ChooseStep<S,E,M> extends ComputerAwareStep<S,E> implements TraversalHolder<S,E>
TraversalHolder.ChildonGraphComputerid, label, nextEnd, nextStep, previousStep, PROFILING_ENABLED, starts, traversal, traverserStepIdSetByChild| Constructor and Description |
|---|
ChooseStep(Traversal traversal,
java.util.function.Function<S,M> mapFunction,
java.util.Map<M,Traversal<S,E>> choices) |
ChooseStep(Traversal traversal,
java.util.function.Predicate<S> predicate,
Traversal<S,E> trueChoice,
Traversal<S,E> falseChoice) |
| Modifier and Type | Method and Description |
|---|---|
ChooseStep<S,E,M> |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
protected java.util.Iterator<Traverser<E>> |
computerAlgorithm() |
TraversalStrategies |
getChildStrategies() |
java.util.Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to function properly. |
java.util.List<Traversal<S,E>> |
getTraversals() |
void |
reset()
Reset the state of the step such that it has no incoming starts.
|
protected java.util.Iterator<Traverser<E>> |
standardAlgorithm() |
java.lang.String |
toString() |
onEngine, processNextStartaddStart, addStarts, getId, getLabel, getNextStep, getPreviousStep, getTraversal, hasNext, next, setId, setLabel, setNextStep, setPreviousStep, setTraversalequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasStep, executeTraversalOperations, getTraversalRequirements, resetTraversalspublic ChooseStep(Traversal traversal, java.util.function.Predicate<S> predicate, Traversal<S,E> trueChoice, Traversal<S,E> falseChoice)
public TraversalStrategies getChildStrategies()
getChildStrategies in interface TraversalHolder<S,E>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,E>public java.util.List<Traversal<S,E>> getTraversals()
getTraversals in interface TraversalHolder<S,E>protected java.util.Iterator<Traverser<E>> standardAlgorithm()
standardAlgorithm in class ComputerAwareStep<S,E>protected java.util.Iterator<Traverser<E>> computerAlgorithm()
computerAlgorithm in class ComputerAwareStep<S,E>public ChooseStep<S,E,M> clone() throws java.lang.CloneNotSupportedException
StepEmptyStep.public java.lang.String toString()
toString in class AbstractStep<S,E>public void reset()
StepCopyright © 2013-2015 TinkerPop. All Rights Reserved.