org.apache.lucene.search
public class BooleanFilter extends 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 DocIdSet |
finalResult(OpenBitSetDISI result,
int maxDocs)
Deprecated.
Either use CachingWrapperFilter, or
switch to a different DocIdSet implementation yourself.
|
DocIdSet |
getDocIdSet(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 DocIdSet getDocIdSet(IndexReader reader) throws java.io.IOException
getDocIdSet
in class Filter
reader
- a IndexReader
instance opened on the index currently
searched on. Note, it is likely that the provided reader does not
represent the whole underlying index i.e. if the index has more than
one segment the given reader only represents a single segment.java.io.IOException
DocIdBitSet
protected DocIdSet finalResult(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.