Class TokenizerChain
- java.lang.Object
-
- org.apache.lucene.analysis.Analyzer
-
- org.apache.jackrabbit.oak.plugins.index.lucene.util.TokenizerChain
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public final class TokenizerChain extends Analyzer
An analyzer that uses a tokenizer and a list of token filters to create a TokenStream. Taken from org.apache.solr.analysis.TokenizerChain
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.analysis.Analyzer
Analyzer.GlobalReuseStrategy, Analyzer.PerFieldReuseStrategy, Analyzer.ReuseStrategy, Analyzer.TokenStreamComponents
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.analysis.Analyzer
GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY
-
-
Constructor Summary
Constructors Constructor Description TokenizerChain(CharFilterFactory[] charFilters, TokenizerFactory tokenizer, TokenFilterFactory[] filters)
TokenizerChain(TokenizerFactory tokenizer)
TokenizerChain(TokenizerFactory tokenizer, TokenFilterFactory[] filters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharFilterFactory[]
getCharFilters()
TokenFilterFactory[]
getFilters()
TokenizerFactory
getTokenizer()
java.io.Reader
initReader(java.lang.String fieldName, java.io.Reader reader)
java.lang.String
toString()
-
Methods inherited from class org.apache.lucene.analysis.Analyzer
close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, tokenStream, tokenStream
-
-
-
-
Constructor Detail
-
TokenizerChain
public TokenizerChain(TokenizerFactory tokenizer)
-
TokenizerChain
public TokenizerChain(TokenizerFactory tokenizer, TokenFilterFactory[] filters)
-
TokenizerChain
public TokenizerChain(CharFilterFactory[] charFilters, TokenizerFactory tokenizer, TokenFilterFactory[] filters)
-
-
Method Detail
-
initReader
public java.io.Reader initReader(java.lang.String fieldName, java.io.Reader reader)
-
getCharFilters
public CharFilterFactory[] getCharFilters()
-
getTokenizer
public TokenizerFactory getTokenizer()
-
getFilters
public TokenFilterFactory[] getFilters()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-