public class MockRandomMergePolicy extends MergePolicy
MergePolicy.MergeAbortedException, MergePolicy.MergeContext, MergePolicy.MergeException, MergePolicy.MergeSpecification, MergePolicy.OneMerge, MergePolicy.OneMergeProgress
DEFAULT_MAX_CFS_SEGMENT_SIZE, DEFAULT_NO_CFS_RATIO, maxCFSSegmentSize, noCFSRatio
Constructor and Description |
---|
MockRandomMergePolicy(Random random) |
Modifier and Type | Method and Description |
---|---|
MergePolicy.MergeSpecification |
findForcedDeletesMerges(SegmentInfos segmentInfos,
MergePolicy.MergeContext mergeContext) |
MergePolicy.MergeSpecification |
findForcedMerges(SegmentInfos segmentInfos,
int maxSegmentCount,
Map<SegmentCommitInfo,Boolean> segmentsToMerge,
MergePolicy.MergeContext mergeContext) |
MergePolicy.MergeSpecification |
findFullFlushMerges(MergeTrigger mergeTrigger,
SegmentInfos segmentInfos,
MergePolicy.MergeContext mergeContext) |
MergePolicy.MergeSpecification |
findMerges(MergeTrigger mergeTrigger,
SegmentInfos segmentInfos,
MergePolicy.MergeContext mergeContext) |
void |
setDoNonBulkMerges(boolean v)
Set to true if sometimes readers to be merged should be wrapped in a FilterReader
to mixup bulk merging.
|
boolean |
useCompoundFile(SegmentInfos infos,
SegmentCommitInfo mergedInfo,
MergePolicy.MergeContext mergeContext) |
assertDelCount, getMaxCFSSegmentSizeMB, getNoCFSRatio, isMerged, keepFullyDeletedSegment, message, numDeletesToMerge, segString, setMaxCFSSegmentSizeMB, setNoCFSRatio, size, verbose
public MockRandomMergePolicy(Random random)
public void setDoNonBulkMerges(boolean v)
public MergePolicy.MergeSpecification findMerges(MergeTrigger mergeTrigger, SegmentInfos segmentInfos, MergePolicy.MergeContext mergeContext)
findMerges
in class MergePolicy
public MergePolicy.MergeSpecification findForcedMerges(SegmentInfos segmentInfos, int maxSegmentCount, Map<SegmentCommitInfo,Boolean> segmentsToMerge, MergePolicy.MergeContext mergeContext) throws IOException
findForcedMerges
in class MergePolicy
IOException
public MergePolicy.MergeSpecification findForcedDeletesMerges(SegmentInfos segmentInfos, MergePolicy.MergeContext mergeContext) throws IOException
findForcedDeletesMerges
in class MergePolicy
IOException
public MergePolicy.MergeSpecification findFullFlushMerges(MergeTrigger mergeTrigger, SegmentInfos segmentInfos, MergePolicy.MergeContext mergeContext) throws IOException
findFullFlushMerges
in class MergePolicy
IOException
public boolean useCompoundFile(SegmentInfos infos, SegmentCommitInfo mergedInfo, MergePolicy.MergeContext mergeContext) throws IOException
useCompoundFile
in class MergePolicy
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.