C# Class org.apache.lucene.analysis.miscellaneous.Lucene47WordDelimiterFilter

Inheritance: Lucene.Net.Analysis.TokenFilter
Afficher le fichier Open project: paulirwin/lucene.net Class Usage Examples

Méthodes publiques

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

Creates a new WordDelimiterFilter using WordDelimiterIterator#DEFAULT_WORD_DELIM_TABLE as its charTypeTable

Lucene47WordDelimiterFilter ( TokenStream @in, sbyte charTypeTable, int configurationFlags, Lucene.Net.Analysis.CharArraySet protWords ) : System

Creates a new WordDelimiterFilter

Reset ( ) : void

{@inheritDoc}

Private Methods

Méthode Description
InitializeInstanceFields ( ) : void
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

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, Lucene.Net.Analysis.CharArraySet protWords ) : System
@in Lucene.Net.Analysis.TokenStream
configurationFlags int Flags configuring the filter
protWords Lucene.Net.Analysis.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, Lucene.Net.Analysis.CharArraySet protWords ) : System
@in Lucene.Net.Analysis.TokenStream
charTypeTable sbyte table containing character types
configurationFlags int Flags configuring the filter
protWords Lucene.Net.Analysis.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