org.elasticsearch.common.lucene.search
Class LimitFilter.LimitDocSet

java.lang.Object
  extended by org.apache.lucene.search.DocIdSet
      extended by org.elasticsearch.common.lucene.docset.DocSet
          extended by org.elasticsearch.common.lucene.docset.GetDocSet
              extended by org.elasticsearch.common.lucene.search.LimitFilter.LimitDocSet
Enclosing class:
LimitFilter

public class LimitFilter.LimitDocSet
extends GetDocSet


Field Summary
 
Fields inherited from class org.elasticsearch.common.lucene.docset.DocSet
EMPTY_DOC_SET
 
Fields inherited from class org.apache.lucene.search.DocIdSet
EMPTY_DOCIDSET
 
Constructor Summary
LimitFilter.LimitDocSet(int maxDoc, int limit)
           
 
Method Summary
 boolean get(int doc)
           
 
Methods inherited from class org.elasticsearch.common.lucene.docset.GetDocSet
iterator, sizeInBytes
 
Methods inherited from class org.apache.lucene.search.DocIdSet
isCacheable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LimitFilter.LimitDocSet

public LimitFilter.LimitDocSet(int maxDoc,
                               int limit)
Method Detail

get

public boolean get(int doc)
            throws java.io.IOException
Specified by:
get in class DocSet
Throws:
java.io.IOException