|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.analysis.TeeSinkTokenFilter.SinkFilter
org.apache.lucene.analysis.sinks.TokenRangeSinkFilter
public class TokenRangeSinkFilter
Counts the tokens as they go by and saves to the internal list those between the range of lower and upper, exclusive of upper
| Constructor Summary | |
|---|---|
TokenRangeSinkFilter(int lower,
int upper)
|
|
| Method Summary | |
|---|---|
boolean |
accept(AttributeSource source)
Returns true, iff the current state of the passed-in AttributeSource shall be stored
in the sink. |
void |
reset()
Called by TeeSinkTokenFilter.SinkTokenStream.reset(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TokenRangeSinkFilter(int lower,
int upper)
| Method Detail |
|---|
public boolean accept(AttributeSource source)
TeeSinkTokenFilter.SinkFilterAttributeSource shall be stored
in the sink.
accept in class TeeSinkTokenFilter.SinkFilter
public void reset()
throws java.io.IOException
TeeSinkTokenFilter.SinkFilterTeeSinkTokenFilter.SinkTokenStream.reset(). This method does nothing by default
and can optionally be overridden.
reset in class TeeSinkTokenFilter.SinkFilterjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||