org.apache.lucene.analysis.sinks
public class: TokenRangeSinkTokenizer [javadoc |
source]
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
All Implemented Interfaces:
Closeable
Counts the tokens as they go by and saves to the internal list those between the range of lower and upper, exclusive of upper
| Method from org.apache.lucene.analysis.sinks.TokenRangeSinkTokenizer Summary: |
|---|
|
add, reset |
| Methods from org.apache.lucene.util.AttributeSource: |
|---|
|
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, restoreState, toString |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.lucene.analysis.sinks.TokenRangeSinkTokenizer Detail: |
public void add(Token t) {
if (count >= lower && count < upper){
super.add(t);
}
count++;
}
|
public void reset() throws IOException {
count = 0;
}
|