org.apache.lucene.analysis.sinks
public class TokenRangeSinkTokenizer extends SinkTokenizer
iter, lst
Constructor and Description |
---|
TokenRangeSinkTokenizer(int lower,
int upper) |
TokenRangeSinkTokenizer(int initCap,
int lower,
int upper) |
Modifier and Type | Method and Description |
---|---|
void |
add(Token t)
Override this method to cache only certain tokens, or new tokens based
on the old tokens.
|
void |
reset()
Reset the internal data structures to the start at the front of the list of tokens.
|
close, getTokens, next
next
public TokenRangeSinkTokenizer(int lower, int upper)
public TokenRangeSinkTokenizer(int initCap, int lower, int upper)
public void add(Token t)
SinkTokenizer
add
in class SinkTokenizer
t
- The Token
to add to the sinkpublic void reset() throws IOException
SinkTokenizer
TokenStream.next(Token)
reset
in class SinkTokenizer
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.