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

Simplify unwrapping Filter*Reader

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.5, 8.0
    • Fix Version/s: 7.5, 8.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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

              • Assignee:
                Unassigned
                Reporter:
                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