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.LeafReaderContext context,
org.apache.lucene.util.Bits acceptDocs) |
boolean |
isEmpty() |
boolean |
removeFilter(org.apache.lucene.search.Filter filter)
Returns the specified filter from the current filter chain.
|
String |
toString(String field) |
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.LeafReaderContext context,
org.apache.lucene.util.Bits acceptDocs)
throws IOException
getDocIdSet in class org.apache.lucene.search.FilterIOExceptionCopyright © 2006–2015 Hibernate. All rights reserved.