org.apache.lucene.analysis.sinks
Class TokenRangeSinkTokenizer
java.lang.Object
org.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.Tokenizer
org.apache.lucene.analysis.SinkTokenizer
org.apache.lucene.analysis.sinks.TokenRangeSinkTokenizer
Deprecated. Use TokenRangeSinkFilter
and TeeSinkTokenFilter
instead.
public class TokenRangeSinkTokenizer
- extends SinkTokenizer
Counts the tokens as they go by and saves to the internal list those between the range of lower and upper, exclusive of upper
Fields inherited from class org.apache.lucene.analysis.Tokenizer |
input |
Method Summary |
void |
add(Token t)
Deprecated. Override this method to cache only certain tokens, or new tokens based
on the old tokens. |
void |
reset()
Deprecated. Reset the internal data structures to the start at the front of the list of tokens. |
Methods inherited from class org.apache.lucene.util.AttributeSource |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, restoreState, toString |
TokenRangeSinkTokenizer
public TokenRangeSinkTokenizer(int lower,
int upper)
- Deprecated.
TokenRangeSinkTokenizer
public TokenRangeSinkTokenizer(int initCap,
int lower,
int upper)
- Deprecated.
add
public void add(Token t)
- Deprecated.
- Description copied from class:
SinkTokenizer
- Override this method to cache only certain tokens, or new tokens based
on the old tokens.
- Overrides:
add
in class SinkTokenizer
- Parameters:
t
- The Token
to add to the sink
reset
public void reset()
throws IOException
- Deprecated.
- Description copied from class:
SinkTokenizer
- Reset the internal data structures to the start at the front of the list of tokens. Should be called
if tokens were added to the list after an invocation of
SinkTokenizer.next(Token)
- Overrides:
reset
in class SinkTokenizer
- Throws:
IOException
Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.