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 public static final class Analyzer.GlobalReuseStrategy extends Analyzer.ReuseStrategy
Deprecated.This implementation class will be hidden in Lucene 5.0. UseAnalyzer.GLOBAL_REUSE_STRATEGYinstead!Implementation ofAnalyzer.ReuseStrategythat reuses the same components for every field.
-
-
Constructor Summary
Constructors Constructor Description GlobalReuseStrategy()Deprecated.Don't create instances of this class, useAnalyzer.GLOBAL_REUSE_STRATEGY
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Analyzer.TokenStreamComponentsgetReusableComponents(Analyzer analyzer, java.lang.String fieldName)Deprecated.Gets the reusable TokenStreamComponents for the field with the given name.voidsetReusableComponents(Analyzer analyzer, java.lang.String fieldName, Analyzer.TokenStreamComponents components)Deprecated.Stores the given TokenStreamComponents as the reusable components for the field with the give name.
-
-
-
Constructor Detail
-
GlobalReuseStrategy
@Deprecated public GlobalReuseStrategy()
Deprecated.Don't create instances of this class, useAnalyzer.GLOBAL_REUSE_STRATEGYSole constructor. (For invocation by subclass constructors, typically implicit.)
-
-
Method Detail
-
getReusableComponents
public Analyzer.TokenStreamComponents getReusableComponents(Analyzer analyzer, java.lang.String fieldName)
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, java.lang.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.ReuseStrategyfieldName- Name of the field whose TokenStreamComponents are being setcomponents- TokenStreamComponents which are to be reused for the field
-
-