public final class DummyTraverser<T> extends EmptyTraverser<T>
Traverser.Admin<T>
Attachable.Exceptions, Attachable.Method
HALT
Constructor and Description |
---|
DummyTraverser(TraverserGenerator generator) |
Modifier and Type | Method and Description |
---|---|
DummyTraverser<T> |
clone()
Traverser cloning is important when splitting a traverser at a bifurcation point in a traversal.
|
boolean |
equals(Object object) |
TraversalSideEffects |
getSideEffects()
Get the sideEffects associated with the traversal of the traverser.
|
void |
setSideEffects(TraversalSideEffects sideEffects)
Set the sideEffects of the
Traversal . |
<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.
|
addLabels, attach, bulk, detach, dropLabels, dropPath, get, getStepId, getTags, hashCode, incrLoops, initialiseLoops, instance, keepLabels, loops, loops, merge, path, resetLoops, sack, sack, set, setBulk, setStepId, split
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getLoopNames, isHalted
asAdmin, compareTo, path, path, sideEffects, sideEffects
public DummyTraverser(TraverserGenerator generator)
public <R> Traverser.Admin<R> split(R r, Step<T,R> step)
Traverser.Admin
split
in interface Traverser.Admin<T>
split
in class EmptyTraverser<T>
R
- The current object type of the childr
- The current object of the childstep
- The step yielding the splitpublic void setSideEffects(TraversalSideEffects sideEffects)
Traverser.Admin
Traversal
. Given that traversers can move between machines,
it may be important to re-set this when the traverser crosses machine boundaries.setSideEffects
in interface Traverser.Admin<T>
setSideEffects
in class EmptyTraverser<T>
sideEffects
- the sideEffects of the traversal.public TraversalSideEffects getSideEffects()
Traverser.Admin
getSideEffects
in interface Traverser.Admin<T>
getSideEffects
in class EmptyTraverser<T>
public boolean equals(Object object)
equals
in class EmptyTraverser<T>
public DummyTraverser<T> clone()
Traverser
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.