Analyzer.GLOBAL_REUSE_STRATEGY
instead!@Deprecated public static final class Analyzer.GlobalReuseStrategy extends Analyzer.ReuseStrategy
Analyzer.ReuseStrategy
that reuses the same components for
every field.Constructor and Description |
---|
Analyzer.GlobalReuseStrategy()
Deprecated.
Don't create instances of this class, use
Analyzer.GLOBAL_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.GlobalReuseStrategy()
Analyzer.GLOBAL_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.