BufferedUpdates

class BufferedUpdates(val segmentName: String) : Accountable

Holds buffered deletes and updates, by docID, term or query for a single segment. This is used to hold buffered pending deletes and updates against the to-be-flushed segment. Once the deletes and updates are pushed (on flush in DocumentsWriter), they are converted to a [ ] instance and pushed to the BufferedUpdatesStream.

Constructors

Link copied to clipboard
constructor(segmentName: String)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

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
var gen: Long
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun addQuery(query: Query, docIDUpto: Int)
Link copied to clipboard
fun addTerm(term: Term, docIDUpto: Int)
Link copied to clipboard
fun any(): Boolean
Link copied to clipboard
fun clear()
Link copied to clipboard
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 override fun toString(): String