ReadersAndUpdates

class ReadersAndUpdates(indexCreatedVersionMajor: Int, val info: SegmentCommitInfo, pendingDeletes: PendingDeletes)

Constructors

Link copied to clipboard
constructor(indexCreatedVersionMajor: Int, info: SegmentCommitInfo, pendingDeletes: PendingDeletes)
constructor(indexCreatedVersionMajor: Int, reader: SegmentReader, pendingDeletes: PendingDeletes)

Init from a previously opened SegmentReader.

Properties

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

Functions

Link copied to clipboard

Adds a new resolved (meaning it maps docIDs to new values) doc values packet. We buffer these in RAM and write to disk when too much RAM is used or when a merge needs to kick off, or a commit/refresh.

Link copied to clipboard
fun decRef()
Link copied to clipboard
fun delete(docID: Int): Boolean
Link copied to clipboard
Link copied to clipboard

Drops all merging updates. Called from IndexWriter after this segment finished merging (whether successfully or not).

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

Returns a reader for merge, with the latest doc values updates and deletions.

Link copied to clipboard

Returns a ref to a clone. NOTE: you should decRef() the reader when you're done (ie do not call close()).

Link copied to clipboard
fun incRef()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun refCount(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun writeFieldUpdates(dir: Directory, fieldNumbers: FieldInfos.FieldNumbers, maxDelGen: Long, infoStream: InfoStream): Boolean
Link copied to clipboard