LiveDocsFormat

abstract class LiveDocsFormat

Format for live/deleted documents

Inheritors

Functions

Link copied to clipboard
abstract fun files(info: SegmentCommitInfo, files: MutableCollection<String>)

Records all files in use by this SegmentCommitInfo into the files argument.

Link copied to clipboard
abstract fun readLiveDocs(dir: Directory, info: SegmentCommitInfo, context: IOContext): Bits

Read live docs bits.

Link copied to clipboard
abstract fun writeLiveDocs(bits: Bits, dir: Directory, info: SegmentCommitInfo, newDelCount: Int, context: IOContext)

Persist live docs bits. Use SegmentCommitInfo.getNextDelGen to determine the generation of the deletes file you should write to.