public abstract class AbstractAnalysisFactory extends Object
TokenizerFactory,
TokenFilterFactory and CharFilterFactory.| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
args
The init args
|
protected Version |
luceneMatchVersion
the luceneVersion arg
|
| Constructor and Description |
|---|
AbstractAnalysisFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assureMatchVersion()
this method can be called in the
TokenizerFactory.create(java.io.Reader)
or TokenFilterFactory.create(org.apache.lucene.analysis.TokenStream) methods,
to inform user, that for this factory a luceneMatchVersion is required |
Map<String,String> |
getArgs() |
protected boolean |
getBoolean(String name,
boolean defaultVal) |
protected boolean |
getBoolean(String name,
boolean defaultVal,
boolean useDefault) |
protected int |
getInt(String name) |
protected int |
getInt(String name,
int defaultVal) |
protected int |
getInt(String name,
int defaultVal,
boolean useDefault) |
protected List<String> |
getLines(ResourceLoader loader,
String resource) |
Version |
getLuceneMatchVersion() |
protected Pattern |
getPattern(String name) |
protected CharArraySet |
getSnowballWordSet(ResourceLoader loader,
String wordFiles,
boolean ignoreCase)
same as
getWordSet(ResourceLoader, String, boolean),
except the input is in snowball format. |
protected CharArraySet |
getWordSet(ResourceLoader loader,
String wordFiles,
boolean ignoreCase) |
void |
init(Map<String,String> args) |
void |
setLuceneMatchVersion(Version luceneMatchVersion) |
protected List<String> |
splitFileNames(String fileNames)
Splits file names separated by comma character.
|
protected Version luceneMatchVersion
protected final void assureMatchVersion()
TokenizerFactory.create(java.io.Reader)
or TokenFilterFactory.create(org.apache.lucene.analysis.TokenStream) methods,
to inform user, that for this factory a luceneMatchVersion is requiredpublic void setLuceneMatchVersion(Version luceneMatchVersion)
public Version getLuceneMatchVersion()
protected int getInt(String name)
protected int getInt(String name, int defaultVal)
protected int getInt(String name, int defaultVal, boolean useDefault)
protected boolean getBoolean(String name, boolean defaultVal)
protected boolean getBoolean(String name, boolean defaultVal, boolean useDefault)
protected CharArraySet getWordSet(ResourceLoader loader, String wordFiles, boolean ignoreCase) throws IOException
IOExceptionprotected List<String> getLines(ResourceLoader loader, String resource) throws IOException
IOExceptionprotected CharArraySet getSnowballWordSet(ResourceLoader loader, String wordFiles, boolean ignoreCase) throws IOException
getWordSet(ResourceLoader, String, boolean),
except the input is in snowball format.IOExceptionprotected List<String> splitFileNames(String fileNames)
fileNames - the string containing file namesCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.