|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.search.Filter org.apache.lucene.search.BooleanFilter
public class BooleanFilter
A container Filter that allows Boolean composition of Filters. Filters are allocated into one of three logical constructs; SHOULD, MUST NOT, MUST The results Filter BitSet is constructed as follows: SHOULD Filters are OR'd together The resulting Filter is NOT'd with the NOT Filters The resulting Filter is AND'd with the MUST Filters
Constructor Summary | |
---|---|
BooleanFilter()
|
Method Summary | |
---|---|
void |
add(FilterClause filterClause)
Adds a new FilterClause to the Boolean Filter container |
boolean |
equals(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. This method will be removed in Lucene 4.0 |
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()
|
String |
toString()
Prints a user-readable version of this query. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BooleanFilter()
Method Detail |
---|
public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.IndexReader reader) throws IOException
getDocIdSet
in class org.apache.lucene.search.Filter
IOException
@Deprecated protected final 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(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |