Package org.dlese.dpc.index.analysis
Class KeywordTokenizer
java.lang.Object
org.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.Tokenizer
org.apache.lucene.analysis.CharTokenizer
org.dlese.dpc.index.analysis.KeywordTokenizer
- All Implemented Interfaces:
Closeable,AutoCloseable
public class KeywordTokenizer
extends org.apache.lucene.analysis.CharTokenizer
Includes all characters as part of the token.
- Author:
- John Weatherley
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource
org.apache.lucene.util.AttributeSource.AttributeFactory, org.apache.lucene.util.AttributeSource.State -
Field Summary
Fields inherited from class org.apache.lucene.analysis.Tokenizer
input -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.lucene.analysis.CharTokenizer
end, incrementToken, normalize, resetMethods inherited from class org.apache.lucene.analysis.Tokenizer
close, correctOffsetMethods inherited from class org.apache.lucene.analysis.TokenStream
resetMethods inherited from class org.apache.lucene.util.AttributeSource
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, restoreState, toString
-
Constructor Details
-
KeywordTokenizer
Constructor for the KeywordTokenizer object- Parameters:
in- The Reader
-
-
Method Details
-
isTokenChar
protected boolean isTokenChar(char c) Accepts all characters.- Specified by:
isTokenCharin classorg.apache.lucene.analysis.CharTokenizer- Parameters:
c- The c- Returns:
- true
-