public abstract class O_Traverser<T> extends AbstractTraverser<T>
Traverser.Admin<T>
Attachable.Exceptions, Attachable.Method
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
tags |
t
HALT
Modifier | Constructor and Description |
---|---|
protected |
O_Traverser() |
|
O_Traverser(T t) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
equals(O_Traverser other) |
boolean |
equals(Object object) |
Set<String> |
getTags()
Get the tags associated with the traverser.
|
int |
hashCode() |
void |
merge(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.
|
addLabels, attach, bulk, clone, detach, dropLabels, dropPath, get, getSideEffects, getStepId, incrLoops, initialiseLoops, keepLabels, loops, loops, path, resetLoops, sack, sack, set, setBulk, setSideEffects, setStepId, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
isHalted
asAdmin, compareTo, path, path, sideEffects, sideEffects
protected O_Traverser()
public O_Traverser(T t)
public Set<String> getTags()
Traverser.Admin
public <R> Traverser.Admin<R> split(R r, Step<T,R> step)
Traverser.Admin
split
in interface Traverser.Admin<T>
split
in class AbstractTraverser<T>
R
- The current object type of the childr
- The current object of the childstep
- The step yielding the splitpublic Traverser.Admin<T> split()
Traverser.Admin
split
in interface Traverser.Admin<T>
split
in class AbstractTraverser<T>
public void merge(Traverser.Admin<?> other)
Traverser.Admin
merge
in interface Traverser.Admin<T>
merge
in class AbstractTraverser<T>
other
- the other traverser to merge into this traverser. Once merged, the other can be garbage collected.public int hashCode()
hashCode
in class AbstractTraverser<T>
protected final boolean equals(O_Traverser other)
public boolean equals(Object object)
equals
in class AbstractTraverser<T>
Copyright © 2013–2021 Apache Software Foundation. All rights reserved.