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

Simplify unwrapping Filter*Reader

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.5, 8.0
    • 7.5, 8.0
    • None
    • None
    • New, Patch Available

    Description

      Today we have 3 different kinds of FilterIndexReader. While FilterDirecotryReader
      and FilterLeafReader are simple to distinguish, FilterCodecReader make decision harder
      since now we need instanceof checks to deside which unwrap method we should call. This
      adds a simple interface that allows to build generic unwrap methods to access the delegat
      of each of the filtering readers.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              simonw Simon Willnauer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m