C# Класс Lucene.Net.Analysis.Analyzer.ReuseStrategy

Strategy defining how TokenStreamComponents are reused per call to Analyzer#tokenStream(String, java.io.Reader).
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
GetStoredValue ( Analyzer analyzer ) : object

Returns the currently stored value.

SetStoredValue ( Analyzer analyzer, object storedValue ) : void

Sets the stored value.

Описание методов

GetReusableComponents() публичный абстрактный Метод

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
Результат TokenStreamComponents

GetStoredValue() защищенный Метод

Returns the currently stored value.
if the Analyzer is closed.
protected GetStoredValue ( Analyzer analyzer ) : object
analyzer Analyzer
Результат object

ReuseStrategy() публичный Метод

Sole constructor. (For invocation by subclass constructors, typically implicit.)
public ReuseStrategy ( ) : Lucene.Net.Util
Результат Lucene.Net.Util

SetReusableComponents() публичный абстрактный Метод

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
Результат void

SetStoredValue() защищенный Метод

Sets the stored value.
if the Analyzer is closed.
protected SetStoredValue ( Analyzer analyzer, object storedValue ) : void
analyzer Analyzer
storedValue object Value to store
Результат void