Class LoopTraversal<S>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.lambda.AbstractLambdaTraversal<S,S>
-
- org.apache.tinkerpop.gremlin.process.traversal.lambda.LoopTraversal<S>
-
- All Implemented Interfaces:
Serializable
,AutoCloseable
,Cloneable
,Iterator<S>
,Traversal<S,S>
,Traversal.Admin<S,S>
public final class LoopTraversal<S> extends AbstractLambdaTraversal<S,S>
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traversal
Traversal.Admin<S,E>, Traversal.Exceptions, Traversal.Symbols
-
-
Field Summary
-
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.lambda.AbstractLambdaTraversal
bypassTraversal
-
-
Constructor Summary
Constructors Constructor Description LoopTraversal(long maxLoops)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addStart(Traverser.Admin<S> start)
Add a singleTraverser.Admin
object to the head of the traversal.boolean
equals(Object other)
long
getMaxLoops()
int
hashCode()
boolean
hasNext()
String
toString()
-
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.lambda.AbstractLambdaTraversal
addStep, applyStrategies, clone, getBypassTraversal, getBytecode, getGraph, getParent, getSideEffects, getSteps, getStrategies, getTraverserGenerator, getTraverserRequirements, isLocked, isRoot, next, nextTraverser, removeStep, reset, setBypassTraversal, setGraph, setParent, setSideEffects, setStrategies
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traversal
asAdmin, close, explain, fill, forEachRemaining, forEachRemaining, iterate, next, none, notifyClose, profile, promise, toBulkSet, toList, toSet, toStream, tryNext
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traversal.Admin
addStarts, addStep, equals, getEndStep, getStartStep, getTraversalSource, getTraverserSetSupplier, removeStep
-
-
-
-
Method Detail
-
getMaxLoops
public long getMaxLoops()
-
hasNext
public boolean hasNext()
-
addStart
public void addStart(Traverser.Admin<S> start)
Description copied from interface:Traversal.Admin
Add a singleTraverser.Admin
object to the head of the traversal. Users should typically not need to call this method. For dynamic inject of data, they should useInjectStep
.- Specified by:
addStart
in interfaceTraversal.Admin<S,S>
- Overrides:
addStart
in classAbstractLambdaTraversal<S,S>
- Parameters:
start
- a traverser to add to the traversal
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractLambdaTraversal<S,S>
-
equals
public boolean equals(Object other)
- Overrides:
equals
in classAbstractLambdaTraversal<S,S>
-
-