Save This Page
Home » lucene-3.0.1-src » org.apache » lucene » analysis » [javadoc | source]
org.apache.lucene.analysis
public final class: LengthFilter [javadoc | source]
java.lang.Object
   org.apache.lucene.util.AttributeSource
      org.apache.lucene.analysis.TokenStream
         org.apache.lucene.analysis.TokenFilter
            org.apache.lucene.analysis.LengthFilter

All Implemented Interfaces:
    Closeable

Removes words that are too long or too short from the stream.
Field Summary
final  int min     
final  int max     
Fields inherited from org.apache.lucene.analysis.TokenFilter:
input
Constructor:
 public LengthFilter(TokenStream in,
    int min,
    int max) 
    Build a filter that removes words that are too long or too short from the text.
Method from org.apache.lucene.analysis.LengthFilter Summary:
incrementToken
Methods from org.apache.lucene.analysis.TokenFilter:
close,   end,   reset
Methods from org.apache.lucene.analysis.TokenStream:
close,   end,   incrementToken,   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.LengthFilter Detail:
 public final boolean incrementToken() throws IOException 
    Returns the next input Token whose term() is the right len