C# Класс Lucene.Net.Facet.Taxonomy.Directory.DirectoryTaxonomyWriter.SinglePositionTokenStream

Наследование: TokenStream
Показать файл Открыть проект

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

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