public interface TrieReader
TrieReader interface provides a means to read a
trie structure with counts.
See TrieWriter for a description of how a trie is
encoded as a sequence of long values.
| Modifier and Type | Method and Description |
|---|---|
long |
readCount()
Returns the count of the next tree.
|
long |
readSymbol()
Returns the identifier of the symbol leading from the root of
the current tree to the daughter subtree for the symbol, or
-1 if there are no more subtrees for the current
node. |
long readSymbol()
throws IOException
-1 if there are no more subtrees for the current
node.IOException - If there is an underlying I/O error.IllegalStateException - If the next item to be read is
not a symbol.long readCount()
throws IOException
IOException - If there is an underlying I/O error.IllegalStateException - If the next item to be read is
not a count.Copyright © 2016 Alias-i, Inc.. All rights reserved.