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
|
boolean |
equals(Object obj) |
DocIdSet |
getDocIdSet(LeafReaderContext context,
Bits acceptDocs) |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
removeFilter(Filter filter)
Returns the specified filter from the current filter chain.
|
String |
toString(String field) |
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(LeafReaderContext context, Bits acceptDocs) throws IOException
getDocIdSet
in class Filter
IOException
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved