trie2.add("bus");
trie2.add("p");
System.out.println("\nTrie2:\n"+trie2);
DBSeqTrieBag testSeq = new DBSeqTrieBag("d:/test3");
LinkedList<TrieBag> listOfTries = new LinkedList<TrieBag>();
listOfTries.add(trie);
listOfTries.add(trie2);
try {
testSeq.merge(listOfTries);
} catch (TrieNotMergeableException e) {
e.printStackTrace();
}
System.out.println("\nResult of merging:\n"+testSeq);
Iterator<String> it = testSeq.keyIterator();
while(it.hasNext()){
System.out.println(it.next());
}
RBTrieMap<Float> trieF = new RBTrieMap<Float>();