public static final class BaseMergePolicyTestCase.MockMergeContext extends Object implements MergePolicy.MergeContext
Constructor and Description |
---|
MockMergeContext(ToIntFunction<SegmentCommitInfo> numDeletesFunc) |
Modifier and Type | Method and Description |
---|---|
InfoStream |
getInfoStream() |
Set<SegmentCommitInfo> |
getMergingSegments() |
int |
numDeletedDocs(SegmentCommitInfo info) |
int |
numDeletesToMerge(SegmentCommitInfo info) |
void |
setMergingSegments(Set<SegmentCommitInfo> mergingSegments) |
public MockMergeContext(ToIntFunction<SegmentCommitInfo> numDeletesFunc)
public int numDeletesToMerge(SegmentCommitInfo info)
numDeletesToMerge
in interface MergePolicy.MergeContext
public int numDeletedDocs(SegmentCommitInfo info)
numDeletedDocs
in interface MergePolicy.MergeContext
public InfoStream getInfoStream()
getInfoStream
in interface MergePolicy.MergeContext
public Set<SegmentCommitInfo> getMergingSegments()
getMergingSegments
in interface MergePolicy.MergeContext
public void setMergingSegments(Set<SegmentCommitInfo> mergingSegments)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.