Class B_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>
org.apache.tinkerpop.gremlin.process.traversal.traverser.B_O_Traverser<T>
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Traverser<T>>,Traverser<T>,Traverser.Admin<T>,Attachable<T>
- Direct Known Subclasses:
B_O_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.O_Traverser
tagsFields 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 TypeMethodDescriptionlongbulk()A traverser may represent a grouping of traversers to allow for more efficient data propagation.booleanprotected final booleanequals(B_O_Traverser other) Get the step id of where the traverser is located.inthashCode()voidmerge(Traverser.Admin<?> other) When two traversers are have equality with each other, then they can be merged.voidsetBulk(long count) Set the number of traversers represented by this traverser.voidSet the step id of where the traverser is located.Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.traverser.O_Traverser
equals, getTags, split, splitMethods inherited from class org.apache.tinkerpop.gremlin.process.traversal.traverser.util.AbstractTraverser
addLabels, attach, clone, detach, dropLabels, dropPath, get, getSideEffects, keepLabels, path, sack, sack, set, setSideEffects, 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
-
bulk
protected long bulk -
future
-
-
Constructor Details
-
B_O_Traverser
protected B_O_Traverser() -
B_O_Traverser
-
-
Method Details
-
setBulk
public void setBulk(long count) Description copied from interface:Traverser.AdminSet the number of traversers represented by this traverser.- Specified by:
setBulkin interfaceTraverser.Admin<T>- Overrides:
setBulkin classAbstractTraverser<T>- Parameters:
count- the number of traversers
-
bulk
public long bulk()Description copied from interface:TraverserA traverser may represent a grouping of traversers to allow for more efficient data propagation. -
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 classO_Traverser<T>- Parameters:
other- the other traverser to merge into this traverser. Once merged, the other can be garbage collected.
-
getStepId
Description copied from interface:Traverser.AdminGet the step id of where the traverser is located. This is typically used in multi-machine systems that require the movement of traversers between different traversal instances.- Specified by:
getStepIdin interfaceTraverser.Admin<T>- Overrides:
getStepIdin classAbstractTraverser<T>- Returns:
- The future step for the traverser
-
setStepId
Description copied from interface:Traverser.AdminSet the step id of where the traverser is located. If the future isTraverser.Admin.HALT, thenTraverser.Admin.isHalted()is true.- Specified by:
setStepIdin interfaceTraverser.Admin<T>- Overrides:
setStepIdin classAbstractTraverser<T>- Parameters:
stepId- The future step of the traverser
-
hashCode
public int hashCode()- Overrides:
hashCodein classO_Traverser<T>
-
equals
-
equals
- Overrides:
equalsin classO_Traverser<T>
-