public final class ForceMergePolicy extends FilterMergePolicy
MergePolicy
that only returns forced merges.
NOTE: Use this policy if you wish to disallow background merges but wish to run optimize/forceMerge segment merges.
MergePolicy.MergeAbortedException, MergePolicy.MergeContext, MergePolicy.MergeException, MergePolicy.MergeSpecification, MergePolicy.OneMerge, MergePolicy.OneMergeProgress
in
DEFAULT_MAX_CFS_SEGMENT_SIZE, DEFAULT_NO_CFS_RATIO, maxCFSSegmentSize, noCFSRatio
Constructor and Description |
---|
ForceMergePolicy(MergePolicy in)
Create a new
ForceMergePolicy around the given MergePolicy |
Modifier and Type | Method and Description |
---|---|
MergePolicy.MergeSpecification |
findMerges(MergeTrigger mergeTrigger,
SegmentInfos segmentInfos,
MergePolicy.MergeContext mergeContext) |
findForcedDeletesMerges, findForcedMerges, findFullFlushMerges, getMaxCFSSegmentSizeMB, getNoCFSRatio, keepFullyDeletedSegment, numDeletesToMerge, setMaxCFSSegmentSizeMB, setNoCFSRatio, size, toString, useCompoundFile
assertDelCount, isMerged, message, segString, verbose
public ForceMergePolicy(MergePolicy in)
ForceMergePolicy
around the given MergePolicy
public MergePolicy.MergeSpecification findMerges(MergeTrigger mergeTrigger, SegmentInfos segmentInfos, MergePolicy.MergeContext mergeContext) throws IOException
findMerges
in class FilterMergePolicy
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.