java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.elasticsearch.common.lucene.search.BitsIterator

public final class BitsIterator extends org.apache.lucene.search.DocIdSetIterator
A DocIdSetIterator over set bits of a Bits instance.
  • Field Summary

    Fields inherited from class org.apache.lucene.search.DocIdSetIterator

    NO_MORE_DOCS
  • Constructor Summary

    Constructors
    Constructor
    Description
    BitsIterator(org.apache.lucene.util.Bits bits)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    advance(int target)
     
    long
     
    int
     
    int
     

    Methods inherited from class org.apache.lucene.search.DocIdSetIterator

    all, docIDRunEnd, empty, intoBitSet, range, slowAdvance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BitsIterator

      public BitsIterator(org.apache.lucene.util.Bits bits)
  • Method Details

    • docID

      public int docID()
      Specified by:
      docID in class org.apache.lucene.search.DocIdSetIterator
    • nextDoc

      public int nextDoc()
      Specified by:
      nextDoc in class org.apache.lucene.search.DocIdSetIterator
    • advance

      public int advance(int target)
      Specified by:
      advance in class org.apache.lucene.search.DocIdSetIterator
    • cost

      public long cost()
      Specified by:
      cost in class org.apache.lucene.search.DocIdSetIterator