TypeTokenFilter
@Deprecated public final class Lucene43TypeTokenFilter extends Lucene43FilteringTokenFilter
AttributeSource.State
input
DEFAULT_TOKEN_ATTRIBUTE_FACTORY
Constructor and Description |
---|
Lucene43TypeTokenFilter(boolean enablePositionIncrements,
TokenStream input,
Set<String> stopTypes,
boolean useWhiteList)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
accept()
Deprecated.
By default accept the token if its type is not a stop type.
|
incrementToken, reset
close, end
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
public Lucene43TypeTokenFilter(boolean enablePositionIncrements, TokenStream input, Set<String> stopTypes, boolean useWhiteList)
protected boolean accept() throws IOException
accept
in class Lucene43FilteringTokenFilter
IOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.