net.java.sen.trie
Class TrieBuilder
java.lang.Object
net.java.sen.trie.TrieBuilder
public class TrieBuilder
- extends Object
Constructs a Trie from the supplied sorted key and value arrays
|
Constructor Summary |
TrieBuilder(String[] keys,
int[] values,
int size)
Creates a TrieBuilder to build the given data |
|
Method Summary |
void |
build(String filename)
Builds The trie data file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrieBuilder
public TrieBuilder(String[] keys,
int[] values,
int size)
- Creates a TrieBuilder to build the given data
- Parameters:
keys - The sorted Trie keysvalues - The values for each keysize - The actual number of entries in the key/value arrays
build
public void build(String filename)
throws IOException
- Builds The trie data file
- Parameters:
filename - The filename for the Trie data file
- Throws:
IOException
Copyright © 2012. All Rights Reserved.