public class ChainedFilter extends Filter
The resulting filter will only enable result Documents if no filter removed it.
Constructor and Description |
---|
ChainedFilter() |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(Filter filter)
Add the specified filter to the chain of filters
|
DocIdSet |
getDocIdSet(IndexReader reader) |
boolean |
isEmpty() |
boolean |
removeFilter(Filter filter)
Returns the specified filter from the current filter chain.
|
String |
toString() |
public void addFilter(Filter filter)
filter
- the filter to add to the filter chain. Cannot be null
.public boolean removeFilter(Filter filter)
filter
- the filter to remove form the chaimtrue
if this chained filter contained the specified filter, false
otherwise.public boolean isEmpty()
public DocIdSet getDocIdSet(IndexReader reader) throws IOException
getDocIdSet
in class Filter
IOException
Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved