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
    • getBitSet

      public Optional<org.apache.lucene.util.BitSet> getBitSet()
      Description copied from class: ESAcceptDocs
      Returns an optional BitSet representing the accepted documents. If a BitSet representation is not available, returns an empty Optional. An empty optional indicates that there are some accepted documents, but they cannot be represented as a BitSet efficiently. Null implies that all documents are accepted.
      Specified by:
      getBitSet in class ESAcceptDocs
      Returns:
      an Optional containing the BitSet of accepted documents, or empty if not available, or null if all documents are accepted