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
 
 public abstract class O_Traverser<T> extends AbstractTraverser<T> - Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.util.AttachableAttachable.Exceptions, Attachable.Method
 - 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraverserTraverser.Admin<T>
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected Set<String>tags- 
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.traverser.util.AbstractTraversert
 - 
Fields inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traverser.AdminHALT
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedO_Traverser()O_Traverser(T t)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)protected booleanequals(O_Traverser other)Set<String>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.Traverser.Admin<T>split()Generate a sibling traverser of the current traverser with a full copy of all state within the sibling.<R> Traverser.Admin<R>split(R r, Step<T,R> step)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.AbstractTraverseraddLabels, attach, bulk, clone, detach, dropLabels, dropPath, get, getSideEffects, getStepId, incrLoops, initialiseLoops, keepLabels, loops, loops, path, resetLoops, sack, sack, set, setBulk, setSideEffects, setStepId, toString
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraverserasAdmin, compareTo, path, path, sideEffects, sideEffects
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traverser.AdmingetLoopNames, isHalted
 
- 
 
- 
- 
- 
Constructor Detail- 
O_Traverserprotected O_Traverser() 
 - 
O_Traverserpublic O_Traverser(T t) 
 
- 
 - 
Method Detail- 
getTagspublic Set<String> 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.
 
 - 
splitpublic <R> Traverser.Admin<R> split(R r, Step<T,R> step) 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 interface- Traverser.Admin<T>
- Overrides:
- splitin class- AbstractTraverser<T>
- Type Parameters:
- R- The current object type of the child
- Parameters:
- r- The current object of the child
- step- The step yielding the split
- Returns:
- The split traverser
 
 - 
splitpublic Traverser.Admin<T> 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 interface- Traverser.Admin<T>
- Overrides:
- splitin class- AbstractTraverser<T>
- Returns:
- The split traverser
 
 - 
mergepublic void merge(Traverser.Admin<?> other) 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 interface- Traverser.Admin<T>
- Overrides:
- mergein class- AbstractTraverser<T>
- Parameters:
- other- the other traverser to merge into this traverser. Once merged, the other can be garbage collected.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- AbstractTraverser<T>
 
 - 
equalsprotected final boolean equals(O_Traverser other) 
 - 
equalspublic boolean equals(Object object) - Overrides:
- equalsin class- AbstractTraverser<T>
 
 
- 
 
-