org.apache.solr.analysis
Class BaseTokenizerFactory
java.lang.Object
org.apache.solr.analysis.BaseTokenizerFactory
- All Implemented Interfaces:
- TokenizerFactory
- Direct Known Subclasses:
- EdgeNGramTokenizerFactory, HTMLStripStandardTokenizerFactory, HTMLStripWhitespaceTokenizerFactory, KeywordTokenizerFactory, LetterTokenizerFactory, LowerCaseTokenizerFactory, NGramTokenizerFactory, StandardTokenizerFactory, WhitespaceTokenizerFactory
public abstract class BaseTokenizerFactory
- extends Object
- implements TokenizerFactory
Simple abstract implementation that handles init arg processing.
- Version:
- $Id: BaseTokenizerFactory.java 472574 2006-11-08 18:25:52Z yonik $
- Author:
- yonik
Method Summary |
Map<String,String> |
getArgs()
Accessor method for reporting the args used to initialize this factory. |
void |
init(Map<String,String> args)
init will be called just once, immediately after creation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
args
protected Map<String,String> args
- The init args
BaseTokenizerFactory
public BaseTokenizerFactory()
init
public void init(Map<String,String> args)
- Description copied from interface:
TokenizerFactory
init
will be called just once, immediately after creation.
The args are user-level initialization parameters that
may be specified when declaring a the factory in the
schema.xml
- Specified by:
init
in interface TokenizerFactory
getArgs
public Map<String,String> getArgs()
- Description copied from interface:
TokenizerFactory
- Accessor method for reporting the args used to initialize this factory.
Implementations are strongly encouraged to return
the contents of the Map passed to to the init method
- Specified by:
getArgs
in interface TokenizerFactory
Copyright © 2006 - 2009 The Apache Software Foundation