org.apache.lucene.analysis
Class WhitespaceAnalyzer
- java.lang.Object
-
- org.apache.lucene.analysis.Analyzer
-
- org.apache.lucene.analysis.WhitespaceAnalyzer
-
public final class WhitespaceAnalyzer extends Analyzer
An Analyzer that uses WhitespaceTokenizer.
-
-
Constructor Summary
Constructors Constructor and Description WhitespaceAnalyzer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description TokenStreamreusableTokenStream(java.lang.String fieldName, java.io.Reader reader)Creates a TokenStream that is allowed to be re-used from the previous time that the same thread called this method.TokenStreamtokenStream(java.lang.String fieldName, java.io.Reader reader)Creates a TokenStream which tokenizes all the text in the provided Reader.-
Methods inherited from class org.apache.lucene.analysis.Analyzer
getPositionIncrementGap
-
-
-
-
Method Detail
-
tokenStream
public TokenStream tokenStream(java.lang.String fieldName, java.io.Reader reader)
Description copied from class:AnalyzerCreates a TokenStream which tokenizes all the text in the provided Reader. Default implementation forwards to tokenStream(Reader) for compatibility with older version. Override to allow Analyzer to choose strategy based on document and/or field. Must be able to handle null field name for backward compatibility.- Specified by:
tokenStreamin classAnalyzer
-
reusableTokenStream
public TokenStream reusableTokenStream(java.lang.String fieldName, java.io.Reader reader) throws java.io.IOException
Description copied from class:AnalyzerCreates a TokenStream that is allowed to be re-used from the previous time that the same thread called this method. Callers that do not need to use more than one TokenStream at the same time from this analyzer should use this method for better performance.- Overrides:
reusableTokenStreamin classAnalyzer- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG