Class RepeatStep<S>
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<S,E>
- 
- org.apache.tinkerpop.gremlin.process.traversal.step.util.ComputerAwareStep<S,S>
- 
- org.apache.tinkerpop.gremlin.process.traversal.step.branch.RepeatStep<S>
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- AutoCloseable,- Cloneable,- Iterator<Traverser.Admin<S>>,- Step<S,S>,- GraphComputing,- PopContaining,- TraversalParent
 
 public final class RepeatStep<S> extends ComputerAwareStep<S,S> implements TraversalParent - Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classRepeatStep.RepeatEndStep<S>- 
Nested classes/interfaces inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.ComputerAwareStepComputerAwareStep.EndStep<S>
 - 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.PopContainingPopContaining.PopInstruction
 
- 
 - 
Field SummaryFields Modifier and Type Field Description booleanemitFirstbooleanuntilFirst- 
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStepid, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
 
- 
 - 
Constructor SummaryConstructors Constructor Description RepeatStep(Traversal.Admin traversal)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <A,B,C extends Traversal<A,B>>
 CaddEmitToTraversal(C traversal, Traversal.Admin<B,?> emitPredicate)static <A,B,C extends Traversal<A,B>>
 CaddRepeatToTraversal(C traversal, String loopName, Traversal.Admin<B,B> repeatTraversal)static <A,B,C extends Traversal<A,B>>
 CaddRepeatToTraversal(C traversal, Traversal.Admin<B,B> repeatTraversal)static <A,B,C extends Traversal<A,B>>
 CaddUntilToTraversal(C traversal, Traversal.Admin<B,?> untilPredicate)RepeatStep<S>clone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.protected Iterator<Traverser.Admin<S>>computerAlgorithm()booleandoEmit(Traverser.Admin<S> traverser, boolean emitFirst)booleandoUntil(Traverser.Admin<S> traverser, boolean utilFirst)Traversal.Admin<S,?>getEmitTraversal()List<Traversal.Admin<S,S>>getGlobalChildren()List<Traversal.Admin<S,?>>getLocalChildren()StringgetLoopName()Traversal.Admin<S,S>getRepeatTraversal()Set<TraverserRequirement>getRequirements()Provide the necessaryTraverserRequirementthat must be met by the traverser in order for the step to function properly.Traversal.Admin<S,?>getUntilTraversal()inthashCode()voidreset()Reset the state of the step such that it has no incoming starts.voidsetEmitTraversal(Traversal.Admin<S,?> emitTraversal)voidsetLoopName(String loopName)voidsetRepeatTraversal(Traversal.Admin<S,S> repeatTraversal)voidsetTraversal(Traversal.Admin<?,?> parentTraversal)Set theTraversalthat this step is contained within.voidsetUntilTraversal(Traversal.Admin<S,?> untilTraversal)protected Iterator<Traverser.Admin<S>>standardAlgorithm()StringtoString()- 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.ComputerAwareSteponGraphComputer, processNextStart
 - 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStepaddLabel, addStart, addStarts, clearLabels, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStep
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.GraphComputingatMaster
 - 
Methods inherited from interface java.util.IteratorforEachRemaining, remove
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.TraversalParentaddGlobalChild, addLocalChild, asStep, close, getPopInstructions, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChild
 
- 
 
- 
- 
- 
Constructor Detail- 
RepeatSteppublic RepeatStep(Traversal.Admin traversal) 
 
- 
 - 
Method Detail- 
getRequirementspublic Set<TraverserRequirement> getRequirements() Description copied from interface:StepProvide the necessaryTraverserRequirementthat must be met by the traverser in order for the step to function properly. The provided default implements returns an empty set.- Specified by:
- getRequirementsin interface- Step<S,S>
- Returns:
- the set of requirements
 
 - 
setRepeatTraversalpublic void setRepeatTraversal(Traversal.Admin<S,S> repeatTraversal) 
 - 
setLoopNamepublic void setLoopName(String loopName) 
 - 
getLoopNamepublic String getLoopName() 
 - 
setUntilTraversalpublic void setUntilTraversal(Traversal.Admin<S,?> untilTraversal) 
 - 
getUntilTraversalpublic Traversal.Admin<S,?> getUntilTraversal() 
 - 
setEmitTraversalpublic void setEmitTraversal(Traversal.Admin<S,?> emitTraversal) 
 - 
getEmitTraversalpublic Traversal.Admin<S,?> getEmitTraversal() 
 - 
getRepeatTraversalpublic Traversal.Admin<S,S> getRepeatTraversal() 
 - 
getGlobalChildrenpublic List<Traversal.Admin<S,S>> getGlobalChildren() - Specified by:
- getGlobalChildrenin interface- TraversalParent
 
 - 
getLocalChildrenpublic List<Traversal.Admin<S,?>> getLocalChildren() - Specified by:
- getLocalChildrenin interface- TraversalParent
 
 - 
doUntilpublic final boolean doUntil(Traverser.Admin<S> traverser, boolean utilFirst) 
 - 
doEmitpublic final boolean doEmit(Traverser.Admin<S> traverser, boolean emitFirst) 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- AbstractStep<S,S>
 
 - 
resetpublic 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.
 - 
clonepublic RepeatStep<S> clone() Description copied from interface:StepCloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication. When cloning a step, it is important that the steps, the cloned step is equivalent to the state of the step whenStep.reset()is called. Moreover, the previous and next steps should be set toEmptyStep.
 - 
setTraversalpublic void setTraversal(Traversal.Admin<?,?> parentTraversal) Description copied from interface:StepSet theTraversalthat this step is contained within.- Specified by:
- setTraversalin interface- Step<S,S>
- Overrides:
- setTraversalin class- AbstractStep<S,S>
- Parameters:
- parentTraversal- the new traversal for this step
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- AbstractStep<S,S>
 
 - 
standardAlgorithmprotected Iterator<Traverser.Admin<S>> standardAlgorithm() throws NoSuchElementException - Specified by:
- standardAlgorithmin class- ComputerAwareStep<S,S>
- Throws:
- NoSuchElementException
 
 - 
computerAlgorithmprotected Iterator<Traverser.Admin<S>> computerAlgorithm() throws NoSuchElementException - Specified by:
- computerAlgorithmin class- ComputerAwareStep<S,S>
- Throws:
- NoSuchElementException
 
 - 
addRepeatToTraversalpublic static <A,B,C extends Traversal<A,B>> C addRepeatToTraversal(C traversal, Traversal.Admin<B,B> repeatTraversal) 
 - 
addRepeatToTraversalpublic static <A,B,C extends Traversal<A,B>> C addRepeatToTraversal(C traversal, String loopName, Traversal.Admin<B,B> repeatTraversal) 
 - 
addUntilToTraversalpublic static <A,B,C extends Traversal<A,B>> C addUntilToTraversal(C traversal, Traversal.Admin<B,?> untilPredicate) 
 - 
addEmitToTraversalpublic static <A,B,C extends Traversal<A,B>> C addEmitToTraversal(C traversal, Traversal.Admin<B,?> emitPredicate) 
 
- 
 
-