C# 클래스 Lucene.Net.Analysis.Reverse.ReverseStringFilter

Reverse token string, for example "country" => "yrtnuoc".

If marker is supplied, then tokens will be also prepended by that character. For example, with a marker of \u0001, "country" => "\u0001yrtnuoc". This is useful when implementing efficient leading wildcards search.

You must specify the required Version compatibility when creating ReverseStringFilter, or when using any of its static methods:

  • As of 3.1, supplementary characters are handled correctly

상속: TokenFilter
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
IncrementToken ( ) : bool
Reverse ( LuceneVersion matchVersion, string input ) : string

Reverses the given input string

Reverse ( LuceneVersion matchVersion, char buffer ) : void

Reverses the given input buffer in-place

Reverse ( LuceneVersion matchVersion, char buffer, int len ) : void

Partially reverses the given input buffer in-place from offset 0 up to the given length.

Reverse ( LuceneVersion matchVersion, char buffer, int start, int len ) : void

Partially reverses the given input buffer in-place from the given offset up to the given length.

ReverseStringFilter ( LuceneVersion matchVersion, TokenStream @in ) : Lucene.Net.Analysis.Tokenattributes

Create a new ReverseStringFilter that reverses all tokens in the supplied TokenStream.

The reversed tokens will not be marked.

ReverseStringFilter ( LuceneVersion matchVersion, TokenStream @in, char marker ) : Lucene.Net.Analysis.Tokenattributes

Create a new ReverseStringFilter that reverses and marks all tokens in the supplied TokenStream.

The reversed tokens will be prepended (marked) by the marker character.

비공개 메소드들

메소드 설명
ReverseUnicode3 ( char buffer, int start, int len ) : void

메소드 상세

IncrementToken() 공개 메소드

public IncrementToken ( ) : bool
리턴 bool

Reverse() 공개 정적인 메소드

Reverses the given input string
public static Reverse ( LuceneVersion matchVersion, string input ) : string
matchVersion LuceneVersion See above
input string the string to reverse
리턴 string

Reverse() 공개 정적인 메소드

Reverses the given input buffer in-place
public static Reverse ( LuceneVersion matchVersion, char buffer ) : void
matchVersion LuceneVersion See above
buffer char the input char array to reverse
리턴 void

Reverse() 공개 정적인 메소드

Partially reverses the given input buffer in-place from offset 0 up to the given length.
public static Reverse ( LuceneVersion matchVersion, char buffer, int len ) : void
matchVersion LuceneVersion See above
buffer char the input char array to reverse
len int the length in the buffer up to where the /// buffer should be reversed
리턴 void

Reverse() 공개 정적인 메소드

Partially reverses the given input buffer in-place from the given offset up to the given length.
public static Reverse ( LuceneVersion matchVersion, char buffer, int start, int len ) : void
matchVersion LuceneVersion See above
buffer char the input char array to reverse
start int the offset from where to reverse the buffer
len int the length in the buffer up to where the /// buffer should be reversed
리턴 void

ReverseStringFilter() 공개 메소드

Create a new ReverseStringFilter that reverses all tokens in the supplied TokenStream.

The reversed tokens will not be marked.

public ReverseStringFilter ( LuceneVersion matchVersion, TokenStream @in ) : Lucene.Net.Analysis.Tokenattributes
matchVersion LuceneVersion See above
@in TokenStream
리턴 Lucene.Net.Analysis.Tokenattributes

ReverseStringFilter() 공개 메소드

Create a new ReverseStringFilter that reverses and marks all tokens in the supplied TokenStream.

The reversed tokens will be prepended (marked) by the marker character.

public ReverseStringFilter ( LuceneVersion matchVersion, TokenStream @in, char marker ) : Lucene.Net.Analysis.Tokenattributes
matchVersion LuceneVersion See above
@in TokenStream
marker char A character used to mark reversed tokens
리턴 Lucene.Net.Analysis.Tokenattributes