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