net.java.sen.trie
Class TrieBuilder

java.lang.Object
  extended by 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
 

Constructor Detail

TrieBuilder

public TrieBuilder(String[] keys,
                   int[] values,
                   int size)
Creates a TrieBuilder to build the given data

Parameters:
keys - The sorted Trie keys
values - The values for each key
size - The actual number of entries in the key/value arrays
Method Detail

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.