FrozenBufferedUpdates

class FrozenBufferedUpdates(infoStream: InfoStream, updates: BufferedUpdates, val privateSegment: SegmentCommitInfo?)

Holds buffered deletes and updates by term or query, once pushed. Pushed deletes/updates are write-once, so we shift to more memory efficient data structure to hold them. We don't hold docIDs because these are applied on flush.

Constructors

Link copied to clipboard
constructor(infoStream: InfoStream, updates: BufferedUpdates, privateSegment: SegmentCommitInfo?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Counts down once all deletes/updates have been applied

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

How many total documents were deleted/updated.

Functions

Link copied to clipboard
fun any(): Boolean
Link copied to clipboard

Applies pending delete-by-term, delete-by-query and doc values updates to all segments in the index, returning the number of new deleted or updated documents.

Link copied to clipboard
fun delGen(): Long
Link copied to clipboard

Returns true iff this buffered updates instance was already applied

Link copied to clipboard
fun lock()

locks this buffered update instance

Link copied to clipboard
fun setDelGen(delGen: Long)
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Tries to lock this buffered update instance

Link copied to clipboard
fun unlock()

Releases the lock of this buffered update instance