org.apache.lucene.analysis
Class Analyzer.GlobalReuseStrategy

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer.ReuseStrategy
      extended by org.apache.lucene.analysis.Analyzer.GlobalReuseStrategy
Enclosing class:
Analyzer

Deprecated. This implementation class will be hidden in Lucene 5.0. Use Analyzer.GLOBAL_REUSE_STRATEGY instead!

@Deprecated
public static final class Analyzer.GlobalReuseStrategy
extends Analyzer.ReuseStrategy

Implementation of Analyzer.ReuseStrategy that reuses the same components for every field.


Constructor Summary
Analyzer.GlobalReuseStrategy()
          Deprecated. Don't create instances of this class, use Analyzer.GLOBAL_REUSE_STRATEGY
 
Method Summary
 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.
 
Methods inherited from class org.apache.lucene.analysis.Analyzer.ReuseStrategy
getStoredValue, setStoredValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Analyzer.GlobalReuseStrategy

@Deprecated
public Analyzer.GlobalReuseStrategy()
Deprecated. Don't create instances of this class, use Analyzer.GLOBAL_REUSE_STRATEGY

Sole constructor. (For invocation by subclass constructors, typically implicit.)

Method Detail

getReusableComponents

public Analyzer.TokenStreamComponents getReusableComponents(Analyzer analyzer,
                                                            String fieldName)
Deprecated. 
Description copied from class: Analyzer.ReuseStrategy
Gets the reusable TokenStreamComponents for the field with the given name.

Specified by:
getReusableComponents in class Analyzer.ReuseStrategy
Parameters:
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 retrieved
Returns:
Reusable TokenStreamComponents for the field, or null if 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.ReuseStrategy
Stores the given TokenStreamComponents as the reusable components for the field with the give name.

Specified by:
setReusableComponents in class Analyzer.ReuseStrategy
fieldName - Name of the field whose TokenStreamComponents are being set
components - TokenStreamComponents which are to be reused for the field


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.