org.apache.lucene.search
public class BooleanFilter extends org.apache.lucene.search.Filter
Constructor and Description |
---|
BooleanFilter() |
Modifier and Type | Method and Description |
---|---|
void |
add(FilterClause filterClause)
Adds a new FilterClause to the Boolean Filter container
|
boolean |
equals(java.lang.Object obj) |
protected org.apache.lucene.search.DocIdSet |
finalResult(org.apache.lucene.util.OpenBitSetDISI result,
int maxDocs)
Deprecated.
Either use CachingWrapperFilter, or
switch to a different DocIdSet implementation yourself.
|
org.apache.lucene.search.DocIdSet |
getDocIdSet(org.apache.lucene.index.IndexReader reader)
Returns the a DocIdSetIterator representing the Boolean composition
of the filters that have been added.
|
int |
hashCode() |
java.lang.String |
toString()
Prints a user-readable version of this query.
|
public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.IndexReader reader) throws java.io.IOException
getDocIdSet
in class org.apache.lucene.search.Filter
java.io.IOException
protected org.apache.lucene.search.DocIdSet finalResult(org.apache.lucene.util.OpenBitSetDISI result, int maxDocs)
public void add(FilterClause filterClause)
filterClause
- A FilterClause object containing a Filter and an Occur parameterpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.