public class ChainedFilter
extends org.apache.lucene.search.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(org.apache.lucene.search.Filter filter)
Add the specified filter to the chain of filters
|
org.apache.lucene.search.DocIdSet |
getDocIdSet(org.apache.lucene.index.IndexReader reader) |
boolean |
isEmpty() |
boolean |
removeFilter(org.apache.lucene.search.Filter filter)
Returns the specified filter from the current filter chain.
|
String |
toString() |
public void addFilter(org.apache.lucene.search.Filter filter)
filter
- the filter to add to the filter chain. Cannot be null
.public boolean removeFilter(org.apache.lucene.search.Filter filter)
filter
- the filter to remove form the chaimtrue
if this chained filter contained the specified filter, false
otherwise.public boolean isEmpty()
public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.IndexReader reader) throws IOException
getDocIdSet
in class org.apache.lucene.search.Filter
IOException
Copyright © 2006–2016 Hibernate. All rights reserved.