public abstract class ConditionalTokenFilterFactory extends TokenFilterFactory implements ResourceLoaderAware
ConditionalTokenFilter
instancesLUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
Modifier | Constructor and Description |
---|---|
protected |
ConditionalTokenFilterFactory(Map<String,String> args) |
Modifier and Type | Method and Description |
---|---|
TokenStream |
create(TokenStream input)
Transform the specified input TokenStream
|
protected abstract ConditionalTokenFilter |
create(TokenStream input,
Function<TokenStream,TokenStream> inner)
Modify the incoming
TokenStream with a ConditionalTokenFilter |
protected void |
doInform(ResourceLoader loader)
Initialises this component with the corresponding
ResourceLoader |
void |
inform(ResourceLoader loader)
Initializes this component with the provided ResourceLoader
(used for loading classes, files, etc).
|
void |
setInnerFilters(List<TokenFilterFactory> innerFilters)
Set the inner filter factories to produce the
TokenFilter s that will be
wrapped by the ConditionalTokenFilter |
availableTokenFilters, forName, lookupClass, normalize, reloadTokenFilters
get, get, get, get, get, getBoolean, getChar, getClassArg, getFloat, getInt, getLines, getLuceneMatchVersion, getOriginalArgs, getPattern, getSet, getSnowballWordSet, getWordSet, isExplicitLuceneMatchVersion, require, require, require, requireBoolean, requireChar, requireFloat, requireInt, setExplicitLuceneMatchVersion, splitAt, splitFileNames
public void setInnerFilters(List<TokenFilterFactory> innerFilters)
TokenFilter
s that will be
wrapped by the ConditionalTokenFilter
public TokenStream create(TokenStream input)
TokenFilterFactory
create
in class TokenFilterFactory
public final void inform(ResourceLoader loader) throws IOException
ResourceLoaderAware
inform
in interface ResourceLoaderAware
IOException
protected void doInform(ResourceLoader loader) throws IOException
ResourceLoader
IOException
protected abstract ConditionalTokenFilter create(TokenStream input, Function<TokenStream,TokenStream> inner)
TokenStream
with a ConditionalTokenFilter
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.