org.apache.solr.analysis
Class BaseTokenizerFactory
java.lang.Object
org.apache.solr.analysis.BaseTokenizerFactory
- All Implemented Interfaces:
- TokenizerFactory
- Direct Known Subclasses:
- ArabicLetterTokenizerFactory, ChineseTokenizerFactory, CJKTokenizerFactory, EdgeNGramTokenizerFactory, HTMLStripStandardTokenizerFactory, HTMLStripWhitespaceTokenizerFactory, KeywordTokenizerFactory, LetterTokenizerFactory, LowerCaseTokenizerFactory, NGramTokenizerFactory, PatternTokenizerFactory, RussianLetterTokenizerFactory, StandardTokenizerFactory, TrieTokenizerFactory, WhitespaceTokenizerFactory
public abstract class BaseTokenizerFactory
- extends Object
- implements TokenizerFactory
Simple abstract implementation that handles init arg processing.
- Version:
- $Id: BaseTokenizerFactory.java 696539 2008-09-18 02:16:26Z ryan $
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 |
log
public static final org.slf4j.Logger log
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 © 2009 Apache Software Foundation. All Rights Reserved.