C# Class Lucene.Net.Analysis.Analyzer.ReuseStrategy

Strategy defining how TokenStreamComponents are reused per call to Analyzer#tokenStream(String, java.io.Reader).
Afficher le fichier Open project: paulirwin/lucene.net

Méthodes publiques

Méthode Description
GetReusableComponents ( Analyzer analyzer, string fieldName ) : TokenStreamComponents

Gets the reusable TokenStreamComponents for the field with the given name.

ReuseStrategy ( ) : Lucene.Net.Util

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

SetReusableComponents ( Analyzer analyzer, string fieldName, TokenStreamComponents components ) : void

Stores the given TokenStreamComponents as the reusable components for the field with the give name.

Méthodes protégées

Méthode Description
GetStoredValue ( Analyzer analyzer ) : object

Returns the currently stored value.

SetStoredValue ( Analyzer analyzer, object storedValue ) : void

Sets the stored value.

Method Details

GetReusableComponents() public abstract méthode

Gets the reusable TokenStreamComponents for the field with the given name.
public abstract GetReusableComponents ( Analyzer analyzer, string fieldName ) : TokenStreamComponents
analyzer Analyzer Analyzer from which to get the reused components. Use /// and /// to access the data on the Analyzer.
fieldName string Name of the field whose reusable TokenStreamComponents /// are to be retrieved
Résultat TokenStreamComponents

GetStoredValue() protected méthode

Returns the currently stored value.
if the Analyzer is closed.
protected GetStoredValue ( Analyzer analyzer ) : object
analyzer Analyzer
Résultat object

ReuseStrategy() public méthode

Sole constructor. (For invocation by subclass constructors, typically implicit.)
public ReuseStrategy ( ) : Lucene.Net.Util
Résultat Lucene.Net.Util

SetReusableComponents() public abstract méthode

Stores the given TokenStreamComponents as the reusable components for the field with the give name.
public abstract SetReusableComponents ( Analyzer analyzer, string fieldName, TokenStreamComponents components ) : void
analyzer Analyzer
fieldName string Name of the field whose TokenStreamComponents are being set
components TokenStreamComponents TokenStreamComponents which are to be reused for the field
Résultat void

SetStoredValue() protected méthode

Sets the stored value.
if the Analyzer is closed.
protected SetStoredValue ( Analyzer analyzer, object storedValue ) : void
analyzer Analyzer
storedValue object Value to store
Résultat void