Package org.apache.solr.index
Class WrapperMergePolicyFactory
- java.lang.Object
-
- org.apache.solr.index.MergePolicyFactory
-
- org.apache.solr.index.WrapperMergePolicyFactory
-
- Direct Known Subclasses:
SortingMergePolicyFactory
,UpgradeIndexMergePolicyFactory
public abstract class WrapperMergePolicyFactory extends MergePolicyFactory
AMergePolicyFactory
for wrapping additionalfactories
.
-
-
Field Summary
Fields Modifier and Type Field Description protected static String[]
NO_SUB_PACKAGES
-
Fields inherited from class org.apache.solr.index.MergePolicyFactory
args, resourceLoader, schema
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WrapperMergePolicyFactory(SolrResourceLoader resourceLoader, MergePolicyFactoryArgs args, IndexSchema schema)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.apache.lucene.index.MergePolicy
getDefaultWrappedMergePolicy()
Returns the default wrappedMergePolicy
.org.apache.lucene.index.MergePolicy
getMergePolicy()
Returns a wrappingMergePolicy
with its set parameters configured.protected abstract org.apache.lucene.index.MergePolicy
getMergePolicyInstance(org.apache.lucene.index.MergePolicy wrappedMP)
Returns an instance of the wrappingMergePolicy
without configuring its set parameters.protected org.apache.lucene.index.MergePolicy
getWrappedMergePolicy()
Returns an instance of the wrappedMergePolicy
after it has been configured with all set parameters.
-
-
-
Field Detail
-
NO_SUB_PACKAGES
protected static final String[] NO_SUB_PACKAGES
-
-
Constructor Detail
-
WrapperMergePolicyFactory
protected WrapperMergePolicyFactory(SolrResourceLoader resourceLoader, MergePolicyFactoryArgs args, IndexSchema schema)
-
-
Method Detail
-
getDefaultWrappedMergePolicy
protected org.apache.lucene.index.MergePolicy getDefaultWrappedMergePolicy()
Returns the default wrappedMergePolicy
. This is called if the factory settings do not explicitly specify the wrapped policy.
-
getWrappedMergePolicy
protected final org.apache.lucene.index.MergePolicy getWrappedMergePolicy()
Returns an instance of the wrappedMergePolicy
after it has been configured with all set parameters.
-
getMergePolicyInstance
protected abstract org.apache.lucene.index.MergePolicy getMergePolicyInstance(org.apache.lucene.index.MergePolicy wrappedMP)
Returns an instance of the wrappingMergePolicy
without configuring its set parameters.
-
getMergePolicy
public final org.apache.lucene.index.MergePolicy getMergePolicy()
Returns a wrappingMergePolicy
with its set parameters configured.- Specified by:
getMergePolicy
in classMergePolicyFactory
-
-