Class RandomForceMergePolicy

java.lang.Object
org.apache.lucene.index.MergePolicy
org.apache.lucene.index.FilterMergePolicy
org.apache.solr.util.RandomMergePolicy
org.apache.solr.util.RandomForceMergePolicy
All Implemented Interfaces:
org.apache.lucene.util.Unwrappable<org.apache.lucene.index.MergePolicy>

public final class RandomForceMergePolicy extends RandomMergePolicy
A MergePolicy with a no-arg constructor that proxies to a ForceMergePolicy wrapped 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 that only returns forced merges.
  • 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

    in

    Fields inherited from class org.apache.lucene.index.MergePolicy

    DEFAULT_MAX_CFS_SEGMENT_SIZE, DEFAULT_NO_CFS_RATIO, maxCFSSegmentSize, noCFSRatio
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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, useCompoundFile

    Methods inherited from class org.apache.lucene.index.MergePolicy

    assertDelCount, isMerged, message, segString, verbose

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RandomForceMergePolicy

      public RandomForceMergePolicy()