org.apache.lucene.analysis.core
Class KeywordTokenizer
java.lang.Object
org.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.Tokenizer
org.apache.lucene.analysis.core.KeywordTokenizer
- All Implemented Interfaces:
- Closeable
public final class KeywordTokenizer
- extends Tokenizer
Emits the entire input as a single token.
Fields inherited from class org.apache.lucene.analysis.Tokenizer |
input |
Methods inherited from class org.apache.lucene.util.AttributeSource |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState |
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZE
- Default read buffer size
- See Also:
- Constant Field Values
KeywordTokenizer
public KeywordTokenizer(Reader input)
KeywordTokenizer
public KeywordTokenizer(Reader input,
int bufferSize)
KeywordTokenizer
public KeywordTokenizer(AttributeSource source,
Reader input,
int bufferSize)
KeywordTokenizer
public KeywordTokenizer(AttributeSource.AttributeFactory factory,
Reader input,
int bufferSize)
incrementToken
public final boolean incrementToken()
throws IOException
- Specified by:
incrementToken
in class TokenStream
- Throws:
IOException
end
public final void end()
- Overrides:
end
in class TokenStream
reset
public void reset()
throws IOException
- Overrides:
reset
in class TokenStream
- Throws:
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.