Class ESAcceptDocs.ESAcceptDocsAll

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

public static final class ESAcceptDocs.ESAcceptDocsAll extends ESAcceptDocs
An AcceptDocs that accepts all documents.
  • Field Details

  • Method Details

    • approximateCost

      public int approximateCost() throws IOException
      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
      Throws:
      IOException - if an I/O error occurs
    • getBitSet

      public Optional<org.apache.lucene.util.BitSet> getBitSet() throws IOException
      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
      Throws:
      IOException - if an I/O error occurs
    • bits

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

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

      public int cost() throws IOException
      Specified by:
      cost in class org.apache.lucene.search.AcceptDocs
      Throws:
      IOException