Package org.apache.solr.util
Class RandomNoReverseMergePolicyFactory
- java.lang.Object
-
- org.apache.solr.index.MergePolicyFactory
-
- org.apache.solr.util.RandomNoReverseMergePolicyFactory
-
public final class RandomNoReverseMergePolicyFactory extends org.apache.solr.index.MergePolicyFactory
AMergePolicyFactory
forRandomMergePolicy
preventing random segment reversing. It's absolutely necessary for all block join dependent tests. Without it, they may unexpectedly fail from time to time.
-
-
Constructor Summary
Constructors Constructor Description RandomNoReverseMergePolicyFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.junit.rules.TestRule
createRule()
This rule works because all solrconfig*.xml files include solrconfig.snippet.randomindexconfig.xml where this property is used.org.apache.lucene.index.MergePolicy
getMergePolicy()
-
-
-
Method Detail
-
createRule
public static org.junit.rules.TestRule createRule()
This rule works because all solrconfig*.xml files include solrconfig.snippet.randomindexconfig.xml where this property is used. If one refuse to include it, test may unexpectedly fail from time to time.
-
getMergePolicy
public org.apache.lucene.index.MergePolicy getMergePolicy()
- Specified by:
getMergePolicy
in classorg.apache.solr.index.MergePolicyFactory
-
-