Class UnionStep<S,E>
java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<S,E>
org.apache.tinkerpop.gremlin.process.traversal.step.util.ComputerAwareStep<S,E>
org.apache.tinkerpop.gremlin.process.traversal.step.branch.BranchStep<S,E,Pick>
org.apache.tinkerpop.gremlin.process.traversal.step.branch.UnionStep<S,E>
- All Implemented Interfaces:
Serializable,AutoCloseable,Cloneable,Iterator<Traverser.Admin<E>>,Step<S,,E> GraphComputing,PopContaining,TraversalOptionParent<Pick,,S, E> TraversalParent
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.ComputerAwareStep
ComputerAwareStep.EndStep<S>Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.PopContaining
PopContaining.PopInstruction -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanIs this the first iteration through the step.Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.branch.BranchStep
branchTraversal, hasBarrier, traversalOptions, traversalPickOptionsFields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild -
Constructor Summary
ConstructorsConstructorDescriptionUnionStep(Traversal.Admin traversal, boolean isStart, Traversal.Admin<?, E>... unionTraversals) UnionStep(Traversal.Admin traversal, Traversal.Admin<?, E>... unionTraversals) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChildOption(Pick pickToken, Traversal.Admin<S, E> traversalOption) booleanisStart()protected Traverser.Admin<E>voidreset()Reset the state of the step such that it has no incoming starts.toString()Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.branch.BranchStep
applyCurrentTraverser, clone, computerAlgorithm, getBranchTraversal, getGlobalChildren, getLocalChildren, getRequirements, getTraversalOptions, getTraversalPickOptions, hashCode, pickBranches, setBranchTraversal, setTraversal, standardAlgorithmMethods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.ComputerAwareStep
onGraphComputerMethods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
addLabel, addStart, addStarts, clearLabels, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStepMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.GraphComputing
atMasterMethods inherited from interface java.util.Iterator
forEachRemaining, removeMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.TraversalParent
addGlobalChild, addLocalChild, asStep, close, getPopInstructions, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChild
-
Field Details
-
first
protected boolean firstIs this the first iteration through the step.
-
-
Constructor Details
-
UnionStep
public UnionStep(Traversal.Admin traversal, boolean isStart, Traversal.Admin<?, E>... unionTraversals) -
UnionStep
-
-
Method Details
-
isStart
public boolean isStart() -
processNextStart
- Overrides:
processNextStartin classComputerAwareStep<S,E>
-
addChildOption
Description copied from interface:TraversalOptionParentThe child as defined by the token it takes, likePickorMerge. This traversal may be of local or global scope depending on the step implementation that works withoption().- Specified by:
addChildOptionin interfaceTraversalOptionParent<Pick,S, E> - Overrides:
addChildOptionin classBranchStep<S,E, Pick>
-
reset
public void reset()Description copied from interface:StepReset the state of the step such that it has no incoming starts. Internal states are to be reset, but any sideEffect data structures are not to be recreated. -
toString
- Overrides:
toStringin classBranchStep<S,E, Pick>
-