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.
|
boolean |
equals(Object object) |
String |
getStepId()
Get the step id of where the traverser is located.
|
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.
|
getTags, split, split
addLabels, attach, clone, detach, dropLabels, dropPath, get, getSideEffects, hashCode, incrLoops, keepLabels, 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 boolean equals(Object object)
equals
in class AbstractTraverser<T>
Copyright © 2013–2016 Apache Software Foundation. All rights reserved.