public static final class Analyzer.GlobalReuseStrategy extends Analyzer.ReuseStrategy
Analyzer.ReuseStrategy that reuses the same components for
every field.| Constructor and Description |
|---|
Analyzer.GlobalReuseStrategy()
Creates a new instance, with empty per-thread values
|
| Modifier and Type | Method and Description |
|---|---|
Analyzer.TokenStreamComponents |
getReusableComponents(String fieldName)
Gets the reusable TokenStreamComponents for the field with the given name
|
void |
setReusableComponents(String fieldName,
Analyzer.TokenStreamComponents components)
Stores the given TokenStreamComponents as the reusable components for the
field with the give name
|
close, getStoredValue, setStoredValuepublic Analyzer.GlobalReuseStrategy()
public Analyzer.TokenStreamComponents getReusableComponents(String fieldName)
Analyzer.ReuseStrategygetReusableComponents in class Analyzer.ReuseStrategyfieldName - Name of the field whose reusable TokenStreamComponents
are to be retrievednull
if there was no previous components for the fieldpublic void setReusableComponents(String fieldName, Analyzer.TokenStreamComponents components)
Analyzer.ReuseStrategysetReusableComponents in class Analyzer.ReuseStrategyfieldName - Name of the field whose TokenStreamComponents are being setcomponents - TokenStreamComponents which are to be reused for the fieldCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.