public final class PositionFilter
extends org.apache.lucene.analysis.TokenFilter
| Constructor and Description |
|---|
PositionFilter(org.apache.lucene.analysis.TokenStream input)
Constructs a PositionFilter that assigns a position increment of zero to
all but the first token from the given input stream.
|
PositionFilter(org.apache.lucene.analysis.TokenStream input,
int positionIncrement)
Constructs a PositionFilter that assigns the given position increment to
all but the first token from the given input stream.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
incrementToken() |
void |
reset() |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toStringpublic PositionFilter(org.apache.lucene.analysis.TokenStream input)
input - the input streampublic PositionFilter(org.apache.lucene.analysis.TokenStream input,
int positionIncrement)
input - the input streampositionIncrement - position increment to assign to all but the first
token from the input streampublic final boolean incrementToken()
throws IOException
incrementToken in class org.apache.lucene.analysis.TokenStreamIOExceptionpublic void reset()
throws IOException
reset in class org.apache.lucene.analysis.TokenFilterIOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.