|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aliasi.lm.MultiTrieReader
public class MultiTrieReader
A MultiTrieReader merges two trie readers, providing
output that is the result of adding the counts from the two readers.
| Constructor Summary | |
|---|---|
MultiTrieReader(TrieReader reader1,
TrieReader reader2)
Construct a multiple trie reader that returns counts that are the sum of the two readers' counts. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiTrieReader(TrieReader reader1,
TrieReader reader2)
reader1 - First reader.reader2 - Second reader.| Method Detail |
|---|
public long readSymbol()
throws IOException
TrieReader-1 if there are no more subtrees for the current
node.
readSymbol in interface TrieReaderIOException - If there is an underlying I/O error.
public long readCount()
throws IOException
TrieReader
readCount in interface TrieReaderIOException - If there is an underlying I/O error.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||