public final class CommonGramsQueryFilter extends TokenFilter
AttributeSource.StateinputDEFAULT_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, endaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toStringpublic CommonGramsQueryFilter(CommonGramsFilter input)
input - CommonGramsFilter the QueryFilter will usepublic void reset()
           throws IOException
reset in class TokenFilterIOExceptionpublic boolean incrementToken()
                       throws IOException
incrementToken in class TokenStreamIOExceptionpublic boolean isGramType()
true if the current type is a gram type, false otherwiseCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.