C# 클래스 Lucene.Net.Analysis.Util.FilteringTokenFilter

Abstract base class for TokenFilters that may remove tokens. You have to implement #accept and return a boolean if the current token should be preserved. #incrementToken uses this method to decide if a token should be passed to the caller.

As of Lucene 4.4, an IllegalArgumentException is thrown when trying to disable position increments when filtering terms.

상속: TokenFilter
파일 보기 프로젝트 열기: paulirwin/lucene.net

보호된 프로퍼티들

프로퍼티 타입 설명
version Lucene.Net.Util.Version

공개 메소드들

메소드 설명
End ( ) : void
FilteringTokenFilter ( Lucene.Net.Util.Version version, TokenStream @in ) : System

Create a new FilteringTokenFilter.

IncrementToken ( ) : bool
Reset ( ) : void

보호된 메소드들

메소드 설명
Accept ( ) : bool

Override this method and return if the current input token should be returned by #incrementToken.

비공개 메소드들

메소드 설명
CheckPositionIncrement ( Lucene.Net.Util.Version version, bool enablePositionIncrements ) : void
FilteringTokenFilter ( Lucene.Net.Util.Version version, bool enablePositionIncrements, TokenStream input ) : System

메소드 상세

Accept() 보호된 추상적인 메소드

Override this method and return if the current input token should be returned by #incrementToken.
protected abstract Accept ( ) : bool
리턴 bool

End() 공개 메소드

public End ( ) : void
리턴 void

FilteringTokenFilter() 공개 메소드

Create a new FilteringTokenFilter.
public FilteringTokenFilter ( Lucene.Net.Util.Version version, TokenStream @in ) : System
version Lucene.Net.Util.Version the Lucene match version
@in TokenStream
리턴 System

IncrementToken() 공개 메소드

public IncrementToken ( ) : bool
리턴 bool

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

프로퍼티 상세

version 보호되어 있는 프로퍼티

protected Version,Lucene.Net.Util version
리턴 Lucene.Net.Util.Version