Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7010

Create MergePolicyWrapper

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • trunk, 5.5
    • core/index
    • None
    • New, Patch Available

    Description

      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.

      Attachments

        1. LUCENE-7010.patch
          25 kB
          Shai Erera

        Issue Links

          Activity

            People

              shaie Shai Erera
              shaie Shai Erera
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: