public final class BloomTokenFilter
extends org.apache.lucene.analysis.TokenFilter
Constructor and Description |
---|
BloomTokenFilter(org.apache.hadoop.util.bloom.Filter filter,
boolean keepMembers,
org.apache.lucene.analysis.TokenStream in) |
Modifier and Type | Method and Description |
---|---|
boolean |
incrementToken() |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
public BloomTokenFilter(org.apache.hadoop.util.bloom.Filter filter, boolean keepMembers, org.apache.lucene.analysis.TokenStream in)
filter
- tokens will be checked for membership in this bloom filterin
- the tokenstream to read.keepMembers
- keep memoers of the bloom filter? If true works like
a whitelist and members found in the list are kept and all others are
dropped. If false works like a stoplist and members found in the
filter are dropped all others are kept.public boolean incrementToken() throws IOException
incrementToken
in class org.apache.lucene.analysis.TokenStream
IOException
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.