DocValuesFieldUpdates

Holds updates of a single DocValues field, for a set of documents within one segment.

Types

Link copied to clipboard
abstract class AbstractIterator(size: Int, docs: PagedMutable, delGen: Long) : DocValuesFieldUpdates.Iterator
Link copied to clipboard
object Companion
Link copied to clipboard
abstract class Iterator : DocValuesIterator

An iterator over documents and their updated values. Only documents with updates are returned by this iterator, and the documents are returned in increasing order.

Properties

Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun add(doc: Int): Int
abstract fun add(doc: Int, value: Long)
abstract fun add(doc: Int, value: BytesRef)

abstract fun add(docId: Int, iterator: DocValuesFieldUpdates.Iterator)

Adds the value for the given docID. This method prevents conditional calls to or Iterator.binaryValue since the implementation knows if it's a long value iterator or binary value

Link copied to clipboard
open fun any(): Boolean

Returns true if this instance contains any updates.

Link copied to clipboard
fun finish()

Freezes internal data structures and sorts updates by docID for efficient iteration.

Link copied to clipboard

Returns an Iterator over the updated documents and their values.

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

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

Link copied to clipboard
open fun reset(doc: Int)

Adds an update that resets the documents value.

Link copied to clipboard
fun size(): Int