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

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

Public Methods

Method 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.

Protected Methods

Method 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 method

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
return TokenStreamComponents

GetStoredValue() protected method

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

ReuseStrategy() public method

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

SetReusableComponents() public abstract method

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
return void

SetStoredValue() protected method

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