C# Class Lucene.Net.Analysis.Miscellaneous.PrefixAwareTokenFilter

Joins two token streams and leaves the last token of the first stream available to be used when updating the token values in the second stream based on that token. The default implementation adds last prefix token end offset to the suffix token start and end offsets.

NOTE: This filter might not behave correctly if used with custom Attributes, i.e. Attributes other than the ones located in Lucene.Net.Analysis.TokenAttributes.

Inheritance: Lucene.Net.Analysis.TokenStream
Afficher le fichier Open project: apache/lucenenet Class Usage Examples

Private Properties

Свойство Type Description
GetNextPrefixInputToken Lucene.Net.Analysis.Token
GetNextSuffixInputToken Lucene.Net.Analysis.Token

Méthodes publiques

Méthode Description
Dispose ( ) : void
End ( ) : void
IncrementToken ( ) : bool
PrefixAwareTokenFilter ( TokenStream prefix, TokenStream suffix ) : Lucene.Net.Analysis.Tokenattributes
Reset ( ) : void
UpdateSuffixToken ( Lucene.Net.Analysis.Token suffixToken, Lucene.Net.Analysis.Token lastPrefixToken ) : Lucene.Net.Analysis.Token

The default implementation adds last prefix token end offset to the suffix token start and end offsets.

Private Methods

Méthode Description
GetNextPrefixInputToken ( Lucene.Net.Analysis.Token token ) : Lucene.Net.Analysis.Token
GetNextSuffixInputToken ( Lucene.Net.Analysis.Token token ) : Lucene.Net.Analysis.Token

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

End() public méthode

public End ( ) : void
Résultat void

IncrementToken() public final méthode

public final IncrementToken ( ) : bool
Résultat bool

PrefixAwareTokenFilter() public méthode

public PrefixAwareTokenFilter ( TokenStream prefix, TokenStream suffix ) : Lucene.Net.Analysis.Tokenattributes
prefix Lucene.Net.Analysis.TokenStream
suffix Lucene.Net.Analysis.TokenStream
Résultat Lucene.Net.Analysis.Tokenattributes

Reset() public méthode

public Reset ( ) : void
Résultat void

UpdateSuffixToken() public méthode

The default implementation adds last prefix token end offset to the suffix token start and end offsets.
public UpdateSuffixToken ( Lucene.Net.Analysis.Token suffixToken, Lucene.Net.Analysis.Token lastPrefixToken ) : Lucene.Net.Analysis.Token
suffixToken Lucene.Net.Analysis.Token a token from the suffix stream
lastPrefixToken Lucene.Net.Analysis.Token the last token from the prefix stream
Résultat Lucene.Net.Analysis.Token