You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shai Erera (JIRA)" <ji...@apache.org> on 2016/02/03 13:05:39 UTC
[jira] [Created] (LUCENE-7010) Create MergePolicyWrapper
Shai Erera created LUCENE-7010:
----------------------------------
Summary: Create MergePolicyWrapper
Key: LUCENE-7010
URL: https://issues.apache.org/jira/browse/LUCENE-7010
Project: Lucene - Core
Issue Type: Improvement
Components: core/index
Reporter: Shai Erera
Assignee: Shai Erera
We currently have two MergePolicy implementations that are wrappers around another MP: {{SortingMergePolicy}} and {{UpgradeIndexMergePolicy}}. A {{MergePolicyWrapper}} will simplify building additional such wrapping MPs by delegating all method calls to the wrapped instance, and allowing implementations to override only what they need.
Also, this issue removes the {{final}} modifier from MP public methods so that they can be delegated properly. See LUCENE-7008 for a test failure that uncovered this issue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org