net.java.sen.trie
クラス TrieSearcher

java.lang.Object
  上位を拡張 net.java.sen.trie.TrieSearcher

public class TrieSearcher
extends java.lang.Object

Searches a Trie data file


コンストラクタの概要
TrieSearcher(java.nio.IntBuffer trieData)
          Creates a TrieSearcher for the given Trie data
 
メソッドの概要
 int commonPrefixSearch(CharIterator iterator, int[] results)
          Searches for Trie keys forming a complete substring of the given sentence, starting at the given position within the sentence
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

TrieSearcher

public TrieSearcher(java.nio.IntBuffer trieData)
Creates a TrieSearcher for the given Trie data

パラメータ:
trieData - The data to search within
メソッドの詳細

commonPrefixSearch

public int commonPrefixSearch(CharIterator iterator,
                              int[] results)
Searches for Trie keys forming a complete substring of the given sentence, starting at the given position within the sentence

パラメータ:
iterator - The character iterator to read search characters from
results - An array used to return the values of the found keys
戻り値:
The number of results found
例外:
java.lang.ArrayIndexOutOfBoundsException - if results[] is too small


Copyright ? 2008. All Rights Reserved.