public class TrieSearcher extends Object
| Constructor and Description |
|---|
TrieSearcher() |
| Modifier and Type | Method and Description |
|---|---|
static int |
commonPrefixSearch(IntBuffer trieData,
CharIterator iterator,
int[] results)
Searches for Trie keys forming a complete substring of the given
sentence, starting at the given position within the sentence
|
public static int commonPrefixSearch(IntBuffer trieData, CharIterator iterator, int[] results)
trieData - The Trie data to searchiterator - The character iterator to read search characters fromresults - An array used to return the values of the found keysArrayIndexOutOfBoundsException - if results[] is too small