public final class CommonGramsQueryFilter extends TokenFilter
AttributeSource.State
input
DEFAULT_TOKEN_ATTRIBUTE_FACTORY
Constructor and Description |
---|
CommonGramsQueryFilter(CommonGramsFilter input)
Constructs a new CommonGramsQueryFilter based on the provided CommomGramsFilter
|
Modifier and Type | Method and Description |
---|---|
boolean |
incrementToken()
Output bigrams whenever possible to optimize queries.
|
boolean |
isGramType()
Convenience method to check if the current type is a gram type
|
void |
reset() |
close, end
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
public CommonGramsQueryFilter(CommonGramsFilter input)
input
- CommonGramsFilter the QueryFilter will usepublic void reset() throws IOException
reset
in class TokenFilter
IOException
public boolean incrementToken() throws IOException
incrementToken
in class TokenStream
IOException
public boolean isGramType()
true
if the current type is a gram type, false
otherwiseCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.