Package org.apache.solr.util
Class RandomMergePolicy
java.lang.Object
org.apache.lucene.index.MergePolicy
org.apache.lucene.index.FilterMergePolicy
org.apache.solr.util.RandomMergePolicy
- All Implemented Interfaces:
org.apache.lucene.util.Unwrappable<org.apache.lucene.index.MergePolicy>
- Direct Known Subclasses:
RandomForceMergePolicy
public class RandomMergePolicy
extends org.apache.lucene.index.FilterMergePolicy
A
MergePolicy with a no-arg constructor that proxies to an instance retrieved from LuceneTestCase.newMergePolicy(java.util.Random). Solr tests utilizing the Lucene randomized test framework can
refer to this class in solrconfig.xml to get a fully randomized merge policy.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.MergePolicy
org.apache.lucene.index.MergePolicy.MergeAbortedException, org.apache.lucene.index.MergePolicy.MergeContext, org.apache.lucene.index.MergePolicy.MergeException, org.apache.lucene.index.MergePolicy.MergeSpecification, org.apache.lucene.index.MergePolicy.OneMerge, org.apache.lucene.index.MergePolicy.OneMergeProgress -
Field Summary
Fields inherited from class org.apache.lucene.index.FilterMergePolicy
inFields inherited from class org.apache.lucene.index.MergePolicy
DEFAULT_MAX_CFS_SEGMENT_SIZE, DEFAULT_NO_CFS_RATIO, maxCFSSegmentSize, noCFSRatio -
Constructor Summary
ConstructorsModifierConstructorDescriptionRandomMergePolicy(boolean allowMockMP) Creates an instance.protectedRandomMergePolicy(org.apache.lucene.index.MergePolicy inner) -
Method Summary
Methods inherited from class org.apache.lucene.index.FilterMergePolicy
findForcedDeletesMerges, findForcedMerges, findFullFlushMerges, findMerges, findMerges, getMaxCFSSegmentSizeMB, getNoCFSRatio, keepFullyDeletedSegment, maxFullFlushMergeSize, numDeletesToMerge, setMaxCFSSegmentSizeMB, setNoCFSRatio, size, toString, unwrap, useCompoundFileMethods inherited from class org.apache.lucene.index.MergePolicy
assertDelCount, isMerged, message, segString, verbose
-
Constructor Details
-
RandomMergePolicy
public RandomMergePolicy() -
RandomMergePolicy
public RandomMergePolicy(boolean allowMockMP) Creates an instance.- Parameters:
allowMockMP- whether to give a chance to return MockRandomMergePolicy, which may reverse docs in the segment
-
RandomMergePolicy
protected RandomMergePolicy(org.apache.lucene.index.MergePolicy inner)
-