org.hibernate.search.filter
Class AndDocIdSet

java.lang.Object
  extended by org.apache.lucene.search.DocIdSet
      extended by org.hibernate.search.filter.AndDocIdSet

public class AndDocIdSet
extends org.apache.lucene.search.DocIdSet

A DocIdSet built as applying "AND" operation to a list of other DocIdSet(s). The DocIdSetIterator returned will return only document ids contained in all DocIdSet(s) handed to the constructor.

Author:
Sanne Grinovero

Field Summary
 
Fields inherited from class org.apache.lucene.search.DocIdSet
EMPTY_DOCIDSET
 
Constructor Summary
AndDocIdSet(java.util.List<org.apache.lucene.search.DocIdSet> andedDocIdSets, int maxDocs)
           
 
Method Summary
 boolean isCacheable()
           
 org.apache.lucene.search.DocIdSetIterator iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndDocIdSet

public AndDocIdSet(java.util.List<org.apache.lucene.search.DocIdSet> andedDocIdSets,
                   int maxDocs)
Method Detail

iterator

public org.apache.lucene.search.DocIdSetIterator iterator()
                                                   throws java.io.IOException
Specified by:
iterator in class org.apache.lucene.search.DocIdSet
Throws:
java.io.IOException

isCacheable

public boolean isCacheable()
Overrides:
isCacheable in class org.apache.lucene.search.DocIdSet


Copyright © 2006-2010 Hibernate. All Rights Reserved.