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

Inheritance: TokenFilter
Afficher le fichier Open project: apache/lucenenet Class Usage Examples

Méthodes publiques

Méthode Description
IncrementToken ( ) : bool
Lucene47WordDelimiterFilter ( TokenStream @in, int configurationFlags, CharArraySet protWords ) : System

Creates a new WordDelimiterFilter using WordDelimiterIterator#DEFAULT_WORD_DELIM_TABLE as its charTypeTable

Lucene47WordDelimiterFilter ( TokenStream @in, sbyte charTypeTable, int configurationFlags, CharArraySet protWords ) : System

Creates a new WordDelimiterFilter

Reset ( ) : void

{@inheritDoc}

Private Methods

Méthode Description
Concatenate ( WordDelimiterConcatenation concatenation ) : void

Concatenates the saved buffer to the given WordDelimiterConcatenation

FlushConcatenation ( WordDelimiterConcatenation concatenation ) : bool

Flushes the given WordDelimiterConcatenation by either writing its concat and then clearing, or just clearing.

GeneratePart ( bool isSingleWord ) : void

Generates a word/number part, updating the appropriate attributes

Has ( int flag ) : bool

Determines whether the given flag is set

InitializeInstanceFields ( ) : void
IsAlpha ( int type ) : bool

Checks if the given word type includes #ALPHA

IsDigit ( int type ) : bool

Checks if the given word type includes #DIGIT

IsSubwordDelim ( int type ) : bool

Checks if the given word type includes #SUBWORD_DELIM

IsUpper ( int type ) : bool

Checks if the given word type includes #UPPER

Position ( bool inject ) : int

Get the position increment gap for a subword or concatenation

SaveState ( ) : void

Saves the existing attribute states

ShouldConcatenate ( int wordType ) : bool

Determines whether to concatenate a word or number if the current word is the given type

ShouldGenerateParts ( int wordType ) : bool

Determines whether a word/number part should be generated for a word of the given type

Method Details

IncrementToken() public méthode

public IncrementToken ( ) : bool
Résultat bool

Lucene47WordDelimiterFilter() public méthode

Creates a new WordDelimiterFilter using WordDelimiterIterator#DEFAULT_WORD_DELIM_TABLE as its charTypeTable
public Lucene47WordDelimiterFilter ( TokenStream @in, int configurationFlags, CharArraySet protWords ) : System
@in TokenStream
configurationFlags int Flags configuring the filter
protWords CharArraySet If not null is the set of tokens to protect from being delimited
Résultat System

Lucene47WordDelimiterFilter() public méthode

Creates a new WordDelimiterFilter
public Lucene47WordDelimiterFilter ( TokenStream @in, sbyte charTypeTable, int configurationFlags, CharArraySet protWords ) : System
@in TokenStream
charTypeTable sbyte table containing character types
configurationFlags int Flags configuring the filter
protWords CharArraySet If not null is the set of tokens to protect from being delimited
Résultat System

Reset() public méthode

{@inheritDoc}
public Reset ( ) : void
Résultat void