Module org.elasticsearch.server
Package org.elasticsearch.search.vectors
Class ESAcceptDocs.ScorerSupplierAcceptDocs
java.lang.Object
org.apache.lucene.search.AcceptDocs
org.elasticsearch.search.vectors.ESAcceptDocs
org.elasticsearch.search.vectors.ESAcceptDocs.ScorerSupplierAcceptDocs
- Enclosing class:
ESAcceptDocs
An AcceptDocs that wraps a ScorerSupplier. Indicates that a filter was provided.
-
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
- Specified by:
bitsin classorg.apache.lucene.search.AcceptDocs- Throws:
IOException
-
iterator
- Specified by:
iteratorin classorg.apache.lucene.search.AcceptDocs- Throws:
IOException
-
cost
- Specified by:
costin classorg.apache.lucene.search.AcceptDocs- Throws:
IOException
-
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
- Throws:
IOException- if an I/O error occurs
-
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
- Throws:
IOException- if an I/O error occurs
-