public abstract class KeywordMarkerFilter extends TokenFilter
KeywordAttribute
.KeywordAttribute
AttributeSource.State
input
DEFAULT_TOKEN_ATTRIBUTE_FACTORY
Modifier | Constructor and Description |
---|---|
protected |
KeywordMarkerFilter(TokenStream in)
Creates a new
KeywordMarkerFilter |
Modifier and Type | Method and Description |
---|---|
boolean |
incrementToken() |
protected abstract boolean |
isKeyword() |
close, end, reset
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
protected KeywordMarkerFilter(TokenStream in)
KeywordMarkerFilter
in
- the input streampublic final boolean incrementToken() throws IOException
incrementToken
in class TokenStream
IOException
protected abstract boolean isKeyword()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.