public final class LengthFilter extends TokenFilter
AttributeSource.AttributeFactory, AttributeSource.State
input
Constructor and Description |
---|
LengthFilter(TokenStream in,
int min,
int max)
Build a filter that removes words that are too long or too
short from the text.
|
Modifier and Type | Method and Description |
---|---|
boolean |
incrementToken()
Returns the next input Token whose term() is the right len
|
close, end, reset
getOnlyUseNewAPI, next, next, setOnlyUseNewAPI
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, restoreState, toString
public LengthFilter(TokenStream in, int min, int max)
public final boolean incrementToken() throws IOException
incrementToken
in class TokenStream
Note that this method will be defined abstract in Lucene 3.0.
IOException
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.