public class B_O_Traverser<T> extends O_Traverser<T>
Traverser.Admin<T>
Attachable.Exceptions, Attachable.Method
Modifier and Type | Field and Description |
---|---|
protected long |
bulk |
protected String |
future |
tags
t
HALT
Modifier | Constructor and Description |
---|---|
protected |
B_O_Traverser() |
|
B_O_Traverser(T t,
long initialBulk) |
Modifier and Type | Method and Description |
---|---|
long |
bulk()
A traverser may represent a grouping of traversers to allow for more efficient data propagation.
|
protected boolean |
equals(B_O_Traverser other) |
boolean |
equals(Object object) |
String |
getStepId()
Get the step id of where the traverser is located.
|
int |
hashCode() |
void |
merge(Traverser.Admin<?> other)
When two traversers are have equality with each other, then they can be merged.
|
void |
setBulk(long count)
Set the number of traversers represented by this traverser.
|
void |
setStepId(String stepId)
Set the step id of where the traverser is located.
|
equals, getTags, split, split
addLabels, attach, clone, detach, dropLabels, dropPath, get, getSideEffects, incrLoops, initialiseLoops, keepLabels, loops, loops, path, resetLoops, sack, sack, set, setSideEffects, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
isHalted
asAdmin, compareTo, path, path, sideEffects, sideEffects
protected long bulk
protected String future
protected B_O_Traverser()
public B_O_Traverser(T t, long initialBulk)
public void setBulk(long count)
Traverser.Admin
setBulk
in interface Traverser.Admin<T>
setBulk
in class AbstractTraverser<T>
count
- the number of traverserspublic long bulk()
Traverser
public void merge(Traverser.Admin<?> other)
Traverser.Admin
merge
in interface Traverser.Admin<T>
merge
in class O_Traverser<T>
other
- the other traverser to merge into this traverser. Once merged, the other can be garbage collected.public String getStepId()
Traverser.Admin
getStepId
in interface Traverser.Admin<T>
getStepId
in class AbstractTraverser<T>
public void setStepId(String stepId)
Traverser.Admin
Traverser.Admin.HALT
, then Traverser.Admin.isHalted()
is true.setStepId
in interface Traverser.Admin<T>
setStepId
in class AbstractTraverser<T>
stepId
- The future step of the traverserpublic int hashCode()
hashCode
in class O_Traverser<T>
protected final boolean equals(B_O_Traverser other)
public boolean equals(Object object)
equals
in class O_Traverser<T>
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.