|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
public interface AnalyzerResolver
Resolver from a field name to the corresponding Analyzer object.
| メソッドの概要 | |
|---|---|
void |
close()
Frees persistent resources of all registered analyzers. |
Analyzer[] |
getAnalyzers()
Returns the collection of all registered analyzers. |
Analyzer |
getDefaultAnalyzer()
Returns the default analyzer |
void |
register(FieldMatcher matcher,
Analyzer analyzer)
Registers a pair of FieldMatcher and Analyzer. |
Analyzer |
resolve(String fieldName)
Get an Analyzer corresponding to the field name given. |
| メソッドの詳細 |
|---|
Analyzer resolve(String fieldName)
Analyzer corresponding to the field name given.
Note that implementation of resolve() must be thread-safe.
fieldName - field name passed to Analyzer
void register(FieldMatcher matcher,
Analyzer analyzer)
FieldMatcher and Analyzer. Order-sensitivity of
registration is implementation-dependent.
matcher - a FieldMatcher object, may be null that indicates to treat the analyzer as defaultanalyzer - an Analyzer object, must not be nullAnalyzer getDefaultAnalyzer()
Analyzer object, null if a default analyzer have not been registeredAnalyzer[] getAnalyzers()
Analyzer objectsvoid close()
Closeable 内の close
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||