DocsWithFieldSet

Accumulator for documents that have a value for a field. This is optimized for the case that all documents have a value.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns nested resources of this class. The result should be a point-in-time snapshot (to avoid race conditions).

Functions

Link copied to clipboard
fun add(docID: Int)

Add a document to the set

Link copied to clipboard

Return the number of documents of this set.

Link copied to clipboard
open override fun iterator(): DocIdSetIterator

Provides a DocIdSetIterator to access the set. This implementation can return null if there are no docs that match.

Link copied to clipboard
open override fun ramBytesUsed(): Long

Return the memory usage of this object in bytes. Negative values are illegal.