Module org.elasticsearch.server
Package org.elasticsearch.search.vectors
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
An AcceptDocs that wraps a Bits instance. Generally indicates that no filter was provided, but there are deleted docs
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.vectors.ESAcceptDocs
ESAcceptDocs.BitsAcceptDocs, ESAcceptDocs.ESAcceptDocsAll, ESAcceptDocs.ScorerSupplierAcceptDocs -
Method Summary
Methods inherited from class org.apache.lucene.search.AcceptDocs
fromIteratorSupplier, fromLiveDocs
-
Method Details
-
bits
public org.apache.lucene.util.Bits bits()- Specified by:
bitsin classorg.apache.lucene.search.AcceptDocs
-
iterator
public org.apache.lucene.search.DocIdSetIterator iterator()- Specified by:
iteratorin classorg.apache.lucene.search.AcceptDocs
-
cost
public int cost()- Specified by:
costin classorg.apache.lucene.search.AcceptDocs
-
approximateCost
public int approximateCost()Description copied from class:ESAcceptDocsReturns an approximate cost of the accepted documents. This is generally much cheaper thanAcceptDocs.cost(), as implementations may not fully evaluate filters to provide this estimate and may ignore deletions- Specified by:
approximateCostin classESAcceptDocs- Returns:
- the approximate cost
-
getBitSet
Description copied from class:ESAcceptDocsReturns 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:
getBitSetin classESAcceptDocs- Returns:
- an Optional containing the BitSet of accepted documents, or empty if not available, or null if all documents are accepted
-