Class ESAcceptDocs.BitsAcceptDocs

java.lang.Object
org.apache.lucene.search.AcceptDocs
org.elasticsearch.search.vectors.ESAcceptDocs
org.elasticsearch.search.vectors.ESAcceptDocs.BitsAcceptDocs
Enclosing class:
ESAcceptDocs

public static final class ESAcceptDocs.BitsAcceptDocs extends ESAcceptDocs
An AcceptDocs that wraps a Bits instance. Generally indicates that no filter was provided, but there are deleted docs
  • Method Details

    • bits

      public org.apache.lucene.util.Bits bits()
      Specified by:
      bits in class org.apache.lucene.search.AcceptDocs
    • iterator

      public org.apache.lucene.search.DocIdSetIterator iterator()
      Specified by:
      iterator in class org.apache.lucene.search.AcceptDocs
    • cost

      public int cost()
      Specified by:
      cost in class org.apache.lucene.search.AcceptDocs
    • approximateCost

      public int approximateCost()
      Description copied from class: ESAcceptDocs
      Returns an approximate cost of the accepted documents. This is generally much cheaper than AcceptDocs.cost(), as implementations may not fully evaluate filters to provide this estimate and may ignore deletions
      Specified by:
      approximateCost in class ESAcceptDocs
      Returns:
      the approximate cost