org.apache.solr.analysis
Class TrimFilter
java.lang.Object
org.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
org.apache.solr.analysis.TrimFilter
public final class TrimFilter
- extends TokenFilter
Trims leading and trailing whitespace from Tokens in the stream.
- Version:
- $Id:$
Methods inherited from class org.apache.lucene.util.AttributeSource |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, restoreState, toString |
TrimFilter
public TrimFilter(TokenStream in,
boolean updateOffsets)
incrementToken
public boolean incrementToken()
throws IOException
- Overrides:
incrementToken
in class TokenStream
- Throws:
IOException
Copyright © 2011 Apache Software Foundation. All Rights Reserved.