Class DummyTraverser<T>
java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.traverser.util.EmptyTraverser<T>
org.apache.tinkerpop.gremlin.process.traversal.traverser.util.DummyTraverser<T>
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Traverser<T>>,Traverser<T>,Traverser.Admin<T>,Attachable<T>
Similar to the EmptyTraverser, except the DummyTraverser can split. When it splits it generates an entirely
new traverser using its supplied TraverserGenerator, leaving no trace of the initial DummyTraverser in the path.
Useful for seeding nested traversals inside of start steps.
- Author:
- Mike Personick (http://github.com/mikepersonick)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
Attachable.Exceptions, Attachable.MethodNested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traverser
Traverser.Admin<T> -
Field Summary
Fields inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
loggerFields inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traverser.Admin
HALT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Traverser cloning is important when splitting a traverser at a bifurcation point in a traversal.booleanGet the sideEffects associated with the traversal of the traverser.voidsetSideEffects(TraversalSideEffects sideEffects) Set the sideEffects of theTraversal.<R> Traverser.Admin<R>Generate a child traverser of the current traverser for current as step and new object location.Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.traverser.util.EmptyTraverser
addLabels, attach, bulk, detach, dropLabels, dropPath, get, getStepId, getTags, hashCode, incrLoops, initialiseLoops, instance, keepLabels, loops, loops, merge, path, resetLoops, sack, sack, set, setBulk, setStepId, splitMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traverser
asAdmin, compareTo, path, path, sideEffects, sideEffectsMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traverser.Admin
getLoopNames, isHalted
-
Constructor Details
-
DummyTraverser
-
-
Method Details
-
split
Description copied from interface:Traverser.AdminGenerate a child traverser of the current traverser for current as step and new object location. The child has the path history, future, and loop information of the parent. The child extends that path history with the current as and provided R-object.- Specified by:
splitin interfaceTraverser.Admin<T>- Overrides:
splitin classEmptyTraverser<T>- Type Parameters:
R- The current object type of the child- Parameters:
r- The current object of the childstep- The step yielding the split- Returns:
- The split traverser
-
setSideEffects
Description copied from interface:Traverser.AdminSet the sideEffects of theTraversal. Given that traversers can move between machines, it may be important to re-set this when the traverser crosses machine boundaries.- Specified by:
setSideEffectsin interfaceTraverser.Admin<T>- Overrides:
setSideEffectsin classEmptyTraverser<T>- Parameters:
sideEffects- the sideEffects of the traversal.
-
getSideEffects
Description copied from interface:Traverser.AdminGet the sideEffects associated with the traversal of the traverser.- Specified by:
getSideEffectsin interfaceTraverser.Admin<T>- Overrides:
getSideEffectsin classEmptyTraverser<T>- Returns:
- the traversal sideEffects of the traverser
-
equals
- Overrides:
equalsin classEmptyTraverser<T>
-
clone
Description copied from interface:TraverserTraverser cloning is important when splitting a traverser at a bifurcation point in a traversal.
-