C# Class Lucene.Net.Analysis.Util.TokenFilterFactory

Abstract parent class for analysis factories that create TokenFilter instances.
Inheritance: AbstractAnalysisFactory
Exibir arquivo Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
Create ( TokenStream input ) : TokenStream

Transform the specified input TokenStream

ForName ( string name, string>.IDictionary args ) : TokenFilterFactory

looks up a tokenfilter by name from context classpath

LookupClass ( string name ) : Type

looks up a tokenfilter class by name from context classpath

ReloadTokenFilters ( ) : void

Reloads the factory list from the given ClassLoader. Changes to the factories are visible after the method ends, all iterators (#availableTokenFilters(),...) stay consistent.

NOTE: Only new factories are added, existing ones are never removed or replaced.

This method is expensive and should only be called for discovery of new factories on the given classpath/classloader!

Protected Methods

Method Description
TokenFilterFactory ( string>.IDictionary args ) : System

Initialize this factory via a set of key-value pairs.

Method Details

Create() public abstract method

Transform the specified input TokenStream
public abstract Create ( TokenStream input ) : TokenStream
input TokenStream
return TokenStream

ForName() public static method

looks up a tokenfilter by name from context classpath
public static ForName ( string name, string>.IDictionary args ) : TokenFilterFactory
name string
args string>.IDictionary
return TokenFilterFactory

LookupClass() public static method

looks up a tokenfilter class by name from context classpath
public static LookupClass ( string name ) : Type
name string
return System.Type

ReloadTokenFilters() public static method

Reloads the factory list from the given ClassLoader. Changes to the factories are visible after the method ends, all iterators (#availableTokenFilters(),...) stay consistent.

NOTE: Only new factories are added, existing ones are never removed or replaced.

This method is expensive and should only be called for discovery of new factories on the given classpath/classloader!

public static ReloadTokenFilters ( ) : void
return void

TokenFilterFactory() protected method

Initialize this factory via a set of key-value pairs.
protected TokenFilterFactory ( string>.IDictionary args ) : System
args string>.IDictionary
return System