protected static class ImmutableBinaryTrie.Node extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
ImmutableBinaryTrie.Node |
left |
long[] |
path
An array containing the path compacted in this node (
null if there is no compaction at this node). |
int |
pathLength
The length of the path compacted in this node (0 if there is no compaction at this node).
|
ImmutableBinaryTrie.Node |
right |
int |
word
If nonnegative, this node represent the
word -th word. |
Constructor and Description |
---|
ImmutableBinaryTrie.Node(BitVector path)
Creates a node that does not represent a word.
|
ImmutableBinaryTrie.Node(BitVector path,
int word)
Creates a node representing a word.
|
public ImmutableBinaryTrie.Node left
public ImmutableBinaryTrie.Node right
public final long[] path
null
if there is no compaction at this node).public final int pathLength
public final int word
word
-th word.public ImmutableBinaryTrie.Node(BitVector path, int word)
Note that the long array contained in path
will be stored inside the node.
path
- the path compacted in this node, or null
for the empty path.word
- the index of the word represented by this node.public ImmutableBinaryTrie.Node(BitVector path)
path
- the path compacted in this node, or null
for the empty path.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.