C# 클래스 Lucene.Net.Facet.Taxonomy.Directory.DirectoryTaxonomyWriter.SinglePositionTokenStream

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

공개 메소드들

메소드 설명
IncrementToken ( ) : bool
Set ( int val ) : void

Set the value we want to keep, as the position increment. Note that when TermPositions.nextPosition() is later used to retrieve this value, val-1 will be returned, not val.

IMPORTANT NOTE: Before Lucene 2.9, val>=0 were safe (for val==0, the retrieved position would be -1). But starting with Lucene 2.9, this unfortunately changed, and only val>0 are safe. val=0 can still be used, but don't count on the value you retrieve later (it could be 0 or -1, depending on circumstances or versions). This change is described in Lucene's JIRA: LUCENE-1542.

SinglePositionTokenStream ( string word ) : System

메소드 상세

IncrementToken() 공개 메소드

public IncrementToken ( ) : bool
리턴 bool

Set() 공개 메소드

Set the value we want to keep, as the position increment. Note that when TermPositions.nextPosition() is later used to retrieve this value, val-1 will be returned, not val.

IMPORTANT NOTE: Before Lucene 2.9, val>=0 were safe (for val==0, the retrieved position would be -1). But starting with Lucene 2.9, this unfortunately changed, and only val>0 are safe. val=0 can still be used, but don't count on the value you retrieve later (it could be 0 or -1, depending on circumstances or versions). This change is described in Lucene's JIRA: LUCENE-1542.

public Set ( int val ) : void
val int
리턴 void

SinglePositionTokenStream() 공개 메소드

public SinglePositionTokenStream ( string word ) : System
word string
리턴 System