Companion
object Companion
Functions
Link copied to clipboard
Apply numDeletes uniformly across all segments of infos.
Link copied to clipboard
fun applyMerge(infos: SegmentInfos, merge: MergePolicy.OneMerge, mergedSegmentName: String, stats: BaseMergePolicyTestCase.IOStats): SegmentInfos
Apply a merge to a SegmentInfos instance, accumulating the number of written bytes into stats.
Link copied to clipboard
fun makeSegmentCommitInfo(name: String, maxDoc: Int, numDeletedDocs: Int, sizeMB: Double, source: String): SegmentCommitInfo
Make a new SegmentCommitInfo with the given maxDoc, numDeletedDocs and sizeInBytes, which are usually the numbers that merge policies care about.