Package org.apache.lucene.analysis
Class Analyzer.PerFieldReuseStrategy
- java.lang.Object
-
- org.apache.lucene.analysis.Analyzer.ReuseStrategy
-
- org.apache.lucene.analysis.Analyzer.PerFieldReuseStrategy
-
- Enclosing class:
- Analyzer
@Deprecated public static class Analyzer.PerFieldReuseStrategy extends Analyzer.ReuseStrategy
Deprecated.This implementation class will be hidden in Lucene 5.0. UseAnalyzer.PER_FIELD_REUSE_STRATEGY
instead!Implementation ofAnalyzer.ReuseStrategy
that reuses components per-field by maintaining a Map of TokenStreamComponent per field name.
-
-
Constructor Summary
Constructors Constructor Description PerFieldReuseStrategy()
Deprecated.Don't create instances of this class, useAnalyzer.PER_FIELD_REUSE_STRATEGY
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Analyzer.TokenStreamComponents
getReusableComponents(Analyzer analyzer, java.lang.String fieldName)
Deprecated.Gets the reusable TokenStreamComponents for the field with the given name.void
setReusableComponents(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.-
Methods inherited from class org.apache.lucene.analysis.Analyzer.ReuseStrategy
getStoredValue, setStoredValue
-
-
-
-
Constructor Detail
-
PerFieldReuseStrategy
@Deprecated public PerFieldReuseStrategy()
Deprecated.Don't create instances of this class, useAnalyzer.PER_FIELD_REUSE_STRATEGY
Sole 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.ReuseStrategy
Gets the reusable TokenStreamComponents for the field with the given name.- Specified by:
getReusableComponents
in 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
null
if 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.ReuseStrategy
Stores the given TokenStreamComponents as the reusable components for the field with the give name.- Specified by:
setReusableComponents
in classAnalyzer.ReuseStrategy
fieldName
- Name of the field whose TokenStreamComponents are being setcomponents
- TokenStreamComponents which are to be reused for the field
-
-