|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.analysis.Analyzer.ReuseStrategy org.apache.lucene.analysis.Analyzer.PerFieldReuseStrategy
Analyzer.PER_FIELD_REUSE_STRATEGY
instead!
@Deprecated public static class Analyzer.PerFieldReuseStrategy
Implementation of Analyzer.ReuseStrategy
that reuses components per-field by
maintaining a Map of TokenStreamComponent per field name.
Constructor Summary | |
---|---|
Analyzer.PerFieldReuseStrategy()
Deprecated. Don't create instances of this class, use Analyzer.PER_FIELD_REUSE_STRATEGY |
Method Summary | |
---|---|
Analyzer.TokenStreamComponents |
getReusableComponents(Analyzer analyzer,
String fieldName)
Deprecated. Gets the reusable TokenStreamComponents for the field with the given name. |
void |
setReusableComponents(Analyzer analyzer,
String fieldName,
Analyzer.TokenStreamComponents components)
Deprecated. Stores the given TokenStreamComponents as the reusable components for the field with the give name. |
Methods inherited from class org.apache.lucene.analysis.Analyzer.ReuseStrategy |
---|
getStoredValue, setStoredValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public Analyzer.PerFieldReuseStrategy()
Analyzer.PER_FIELD_REUSE_STRATEGY
Method Detail |
---|
public Analyzer.TokenStreamComponents getReusableComponents(Analyzer analyzer, String fieldName)
Analyzer.ReuseStrategy
getReusableComponents
in class Analyzer.ReuseStrategy
analyzer
- Analyzer from which to get the reused components. Use
Analyzer.ReuseStrategy.getStoredValue(Analyzer)
and Analyzer.ReuseStrategy.setStoredValue(Analyzer, Object)
to access the data on the Analyzer.fieldName
- Name of the field whose reusable TokenStreamComponents
are to be retrieved
null
if there was no previous components for the fieldpublic void setReusableComponents(Analyzer analyzer, String fieldName, Analyzer.TokenStreamComponents components)
Analyzer.ReuseStrategy
setReusableComponents
in class Analyzer.ReuseStrategy
fieldName
- Name of the field whose TokenStreamComponents are being setcomponents
- TokenStreamComponents which are to be reused for the field
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |