org.elasticsearch.common.lucene.search
Class XBooleanFilter

java.lang.Object
  extended by org.apache.lucene.search.Filter
      extended by org.elasticsearch.common.lucene.search.XBooleanFilter
All Implemented Interfaces:
java.io.Serializable

public class XBooleanFilter
extends org.apache.lucene.search.Filter

See Also:
Serialized Form

Constructor Summary
XBooleanFilter()
           
 
Method Summary
 void add(org.apache.lucene.search.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. 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.
 java.util.List<org.apache.lucene.search.Filter> getMustFilters()
           
 java.util.List<org.apache.lucene.search.Filter> getNotFilters()
           
 java.util.List<org.apache.lucene.search.Filter> getShouldFilters()
           
 int hashCode()
           
 java.lang.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

XBooleanFilter

public XBooleanFilter()
Method Detail

getShouldFilters

public java.util.List<org.apache.lucene.search.Filter> getShouldFilters()

getMustFilters

public java.util.List<org.apache.lucene.search.Filter> getMustFilters()

getNotFilters

public java.util.List<org.apache.lucene.search.Filter> getNotFilters()

getDocIdSet

public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.IndexReader reader)
                                              throws java.io.IOException
Returns the a DocIdSetIterator representing the Boolean composition of the filters that have been added.

Specified by:
getDocIdSet in class org.apache.lucene.search.Filter
Throws:
java.io.IOException

finalResult

protected final 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

Provide a SortedVIntList when it is definitely smaller than an OpenBitSet.


add

public void add(org.apache.lucene.search.FilterClause filterClause)
Adds a new FilterClause to the Boolean Filter container

Parameters:
filterClause - A FilterClause object containing a Filter and an Occur parameter

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Prints a user-readable version of this query.

Overrides:
toString in class java.lang.Object