C# 클래스 Lucene.Net.Analysis.Analyzer.ReuseStrategy

Strategy defining how TokenStreamComponents are reused per call to Analyzer#tokenStream(String, java.io.Reader).
파일 보기 프로젝트 열기: paulirwin/lucene.net

공개 메소드들

메소드 설명
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