C# 클래스 Lucene.Net.Analysis.Util.TokenizerFactory

Abstract parent class for analysis factories that create Tokenizer instances.
상속: AbstractAnalysisFactory
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
Create ( Lucene.Net.Util.AttributeSource factory, TextReader input ) : Tokenizer

Creates a TokenStream of the specified input using the given AttributeFactory

Create ( TextReader input ) : Tokenizer

Creates a TokenStream of the specified input using the default attribute factory.

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

looks up a tokenizer by name from context classpath

LookupClass ( string name ) : Type

looks up a tokenizer class by name from context classpath

ReloadTokenizers ( ) : void

Reloads the factory list from the given ClassLoader. Changes to the factories are visible after the method ends, all iterators (#availableTokenizers(),...) 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!

보호된 메소드들

메소드 설명
TokenizerFactory ( string>.IDictionary args ) : System

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

메소드 상세

Create() 공개 추상적인 메소드

Creates a TokenStream of the specified input using the given AttributeFactory
public abstract Create ( Lucene.Net.Util.AttributeSource factory, TextReader input ) : Tokenizer
factory Lucene.Net.Util.AttributeSource
input System.IO.TextReader
리턴 Tokenizer

Create() 공개 메소드

Creates a TokenStream of the specified input using the default attribute factory.
public Create ( TextReader input ) : Tokenizer
input System.IO.TextReader
리턴 Tokenizer

ForName() 공개 정적인 메소드

looks up a tokenizer by name from context classpath
public static ForName ( string name, string>.IDictionary args ) : TokenizerFactory
name string
args string>.IDictionary
리턴 TokenizerFactory

LookupClass() 공개 정적인 메소드

looks up a tokenizer class by name from context classpath
public static LookupClass ( string name ) : Type
name string
리턴 System.Type

ReloadTokenizers() 공개 정적인 메소드

Reloads the factory list from the given ClassLoader. Changes to the factories are visible after the method ends, all iterators (#availableTokenizers(),...) 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 ReloadTokenizers ( ) : void
리턴 void

TokenizerFactory() 보호된 메소드

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