GitHub user s1monw opened a pull request:

    https://github.com/apache/lucene-solr/pull/454

    LUCENE-8503: Simplify unwrapping Filter*Reader

    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.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/s1monw/lucene-solr introduce_reader_delegate

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucene-solr/pull/454.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #454
    
----
commit b989d1fe27e3d486dd8cddf41f8265beab004e6a
Author: Simon Willnauer <simonw@...>
Date:   2018-09-17T08:39:41Z

    LUCENE-8503: Simplify unwrapping Filter*Reader
    
    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.

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to