Package org.apache.lucene.analysis
Class Analyzer.GlobalReuseStrategy
java.lang.Object
org.apache.lucene.analysis.Analyzer.ReuseStrategy
org.apache.lucene.analysis.Analyzer.GlobalReuseStrategy
- Enclosing class:
Analyzer
Deprecated.
Implementation of
Analyzer.ReuseStrategy that reuses the same components for
every field.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Don't create instances of this class, useAnalyzer.GLOBAL_REUSE_STRATEGY -
Method Summary
Modifier and TypeMethodDescriptiongetReusableComponents(Analyzer analyzer, String fieldName) Deprecated.Gets the reusable TokenStreamComponents for the field with the given name.voidsetReusableComponents(Analyzer analyzer, String fieldName, Analyzer.TokenStreamComponents components) Deprecated.Stores the given TokenStreamComponents as the reusable components for the field with the give name.
-
Constructor Details
-
GlobalReuseStrategy
Deprecated.Don't create instances of this class, useAnalyzer.GLOBAL_REUSE_STRATEGYSole constructor. (For invocation by subclass constructors, typically implicit.)
-
-
Method Details
-
getReusableComponents
Deprecated.Description copied from class:Analyzer.ReuseStrategyGets the reusable TokenStreamComponents for the field with the given name.- Specified by:
getReusableComponentsin classAnalyzer.ReuseStrategy- Parameters:
analyzer- Analyzer from which to get the reused components. UseAnalyzer.ReuseStrategy.getStoredValue(Analyzer)andAnalyzer.ReuseStrategy.setStoredValue(Analyzer, Object)to access the data on the Analyzer.fieldName- Name of the field whose reusable TokenStreamComponents are to be retrieved- Returns:
- Reusable TokenStreamComponents for the field, or
nullif there was no previous components for the field
-
setReusableComponents
public void setReusableComponents(Analyzer analyzer, String fieldName, Analyzer.TokenStreamComponents components) Deprecated.Description copied from class:Analyzer.ReuseStrategyStores the given TokenStreamComponents as the reusable components for the field with the give name.- Specified by:
setReusableComponentsin classAnalyzer.ReuseStrategy- Parameters:
fieldName- Name of the field whose TokenStreamComponents are being setcomponents- TokenStreamComponents which are to be reused for the field
-
Analyzer.GLOBAL_REUSE_STRATEGYinstead!