SegmentCommitInfo

class SegmentCommitInfo(val info: SegmentInfo, delCount: Int, softDelCount: Int, delGen: Long, fieldInfosGen: Long, docValuesGen: Long, id: ByteArray?)

Embeds a read-only SegmentInfo and adds per-commit fields.

Constructors

Link copied to clipboard
constructor(info: SegmentInfo, delCount: Int, softDelCount: Int, delGen: Long, fieldInfosGen: Long, docValuesGen: Long, id: ByteArray?)

Properties

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

Returns generation number of the live docs file or -1 if there are no deletes yet.

Link copied to clipboard

Returns the generation number of the DocValues file or -1 if there are no doc-values updates yet.

Link copied to clipboard

Returns the generation number of the field infos file or -1 if there are no field updates yet.

Link copied to clipboard

The SegmentInfo that we wrap.

Link copied to clipboard

Returns the next available generation number of the live docs file.

Link copied to clipboard

Returns the next available generation number of the DocValues files.

Link copied to clipboard

Returns the next available generation number of the FieldInfos files.

Functions

Link copied to clipboard

Called when we succeed in writing deletes

Link copied to clipboard

Called when we succeed in writing a new DocValues generation.

Link copied to clipboard

Called when we succeed in writing a new FieldInfos generation.

Link copied to clipboard

Called if there was an exception while writing deletes, so that we don't try to write to the same file more than once.

Link copied to clipboard

Called if there was an exception while writing a new generation of DocValues, so that we don't try to write to the same file more than once.

Link copied to clipboard

Called if there was an exception while writing a new generation of FieldInfos, so that we don't try to write to the same file more than once.

Link copied to clipboard
Link copied to clipboard

Returns all files in use by this segment.

Link copied to clipboard
fun getDelCount(includeSoftDeletes: Boolean): Int
Link copied to clipboard

Returns the FieldInfos file names.

Link copied to clipboard

Returns and Id that uniquely identifies this segment commit or null if there is no ID assigned. This ID changes each time the segment changes due to a delete, doc-value or field update.

Link copied to clipboard

Gets the nextWriteDelGen.

Link copied to clipboard

Gets the nextWriteDocValuesGen.

Link copied to clipboard

Gets the nextWriteFieldInfosGen.

Link copied to clipboard

Returns the number of only soft-deleted docs.

Link copied to clipboard

Returns true if there are any deletions for the segment at this commit.

Link copied to clipboard

Returns true if there are any field updates for the segment in this commit.

Link copied to clipboard
fun setFieldInfosFiles(fieldInfosFiles: MutableSet<String>)

Sets the FieldInfos file names.

Link copied to clipboard

Sets the nextWriteDelGen.

Link copied to clipboard

Sets the nextWriteDocValuesGen.

Link copied to clipboard

Sets the nextWriteFieldInfosGen.

Link copied to clipboard
fun setSoftDelCount(softDelCount: Int)
Link copied to clipboard

Returns total size in bytes of all files for this segment.

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

fun toString(pendingDelCount: Int): String

Returns a description of this segment.