Class O_Traverser<T>
java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.traverser.util.AbstractTraverser<T>
org.apache.tinkerpop.gremlin.process.traversal.traverser.O_Traverser<T>
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Traverser<T>>,Traverser<T>,Traverser.Admin<T>,Attachable<T>
- Direct Known Subclasses:
B_O_Traverser,O_OB_S_SE_SL_Traverser
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- 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
FieldsFields inherited from class org.apache.tinkerpop.gremlin.process.traversal.traverser.util.AbstractTraverser
tFields 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 TypeMethodDescriptionbooleanprotected final booleanequals(O_Traverser other) getTags()Get the tags associated with the traverser.inthashCode()voidmerge(Traverser.Admin<?> other) When two traversers are have equality with each other, then they can be merged.split()Generate a sibling traverser of the current traverser with a full copy of all state within the sibling.<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.AbstractTraverser
addLabels, attach, bulk, clone, detach, dropLabels, dropPath, get, getSideEffects, getStepId, keepLabels, path, sack, sack, set, setBulk, setSideEffects, setStepId, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traverser
asAdmin, compareTo, loops, loops, path, path, sideEffects, sideEffectsMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traverser.Admin
getLoopNames, incrLoops, initialiseLoops, isHalted, resetLoops
-
Field Details
-
tags
-
-
Constructor Details
-
O_Traverser
protected O_Traverser() -
O_Traverser
-
-
Method Details
-
getTags
Description copied from interface:Traverser.AdminGet the tags associated with the traverser. Tags are used to categorize historic behavior of a traverser. The returned set is mutable.- Returns:
- the set of tags associated with the traverser.
-
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 classAbstractTraverser<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
-
split
Description copied from interface:Traverser.AdminGenerate a sibling traverser of the current traverser with a full copy of all state within the sibling.- Specified by:
splitin interfaceTraverser.Admin<T>- Overrides:
splitin classAbstractTraverser<T>- Returns:
- The split traverser
-
merge
Description copied from interface:Traverser.AdminWhen two traversers are have equality with each other, then they can be merged. This method is used to merge the traversers into a single traverser. This is used for optimization where instead of enumerating all traversers, they can be counted.- Specified by:
mergein interfaceTraverser.Admin<T>- Overrides:
mergein classAbstractTraverser<T>- Parameters:
other- the other traverser to merge into this traverser. Once merged, the other can be garbage collected.
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractTraverser<T>
-
equals
-
equals
- Overrides:
equalsin classAbstractTraverser<T>
-