protected abstract static class ZFastTrie.Node<U> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
parentExtentLength
The length of the extent of the parent node, or -1 for the root.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ZFastTrie.Node() |
| Modifier and Type | Method and Description |
|---|---|
abstract BitVector |
extent(TransformationStrategy<? super U> transform) |
abstract long |
extentLength(TransformationStrategy<? super U> transform) |
abstract BitVector |
handle(TransformationStrategy<? super U> transform) |
long |
handleHash(TransformationStrategy<? super U> transform) |
long |
handleLength(TransformationStrategy<? super U> transform) |
abstract boolean |
intercepts(long h) |
boolean |
isExitNodeOf(LongArrayBitVector v,
TransformationStrategy<? super U> transform)
Returns true if this node is the exit node of a string.
|
boolean |
isExitNodeOf(long length,
long lcpLength,
TransformationStrategy<? super U> transform)
Returns true if this node is the exit node of a string given its length and the length of the longest
common prefix with the node extent.
|
boolean |
isInternal() |
boolean |
isLeaf() |
abstract BitVector |
key(TransformationStrategy<? super U> transform) |
ZFastTrie.Leaf<U> |
leftLeaf() |
long |
nameLength() |
ZFastTrie.Leaf<U> |
rightLeaf() |
String |
toString() |
protected long parentExtentLength
public boolean isLeaf()
public boolean isInternal()
public long nameLength()
public long handleLength(TransformationStrategy<? super U> transform)
public abstract BitVector key(TransformationStrategy<? super U> transform)
public abstract BitVector handle(TransformationStrategy<? super U> transform)
public abstract long extentLength(TransformationStrategy<? super U> transform)
public abstract BitVector extent(TransformationStrategy<? super U> transform)
public abstract boolean intercepts(long h)
public long handleHash(TransformationStrategy<? super U> transform)
public boolean isExitNodeOf(LongArrayBitVector v, TransformationStrategy<? super U> transform)
v - the string.transform - the transformation strategy used to build the trie this node belongs to.public boolean isExitNodeOf(long length,
long lcpLength,
TransformationStrategy<? super U> transform)
length - the length of a string.lcpLength - the length of the longest common prefix between the string and the extent of this node.public ZFastTrie.Leaf<U> leftLeaf()
public ZFastTrie.Leaf<U> rightLeaf()