Analyzer.PER_FIELD_REUSE_STRATEGY
instead!@Deprecated public static class Analyzer.PerFieldReuseStrategy extends Analyzer.ReuseStrategy
Analyzer.ReuseStrategy
that reuses components per-field by
maintaining a Map of TokenStreamComponent per field name.Constructor and Description |
---|
Analyzer.PerFieldReuseStrategy()
Deprecated.
Don't create instances of this class, use
Analyzer.PER_FIELD_REUSE_STRATEGY |
Modifier and Type | Method and Description |
---|---|
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.
|
getStoredValue, setStoredValue
@Deprecated public Analyzer.PerFieldReuseStrategy()
Analyzer.PER_FIELD_REUSE_STRATEGY
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 retrievednull
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 fieldCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.