You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Willnauer (JIRA)" <ji...@apache.org> on 2018/09/17 14:09:01 UTC

[jira] [Resolved] (LUCENE-8503) Simplify unwrapping Filter*Reader

     [ https://issues.apache.org/jira/browse/LUCENE-8503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Willnauer resolved LUCENE-8503.
-------------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 7.6)
                   7.5

> Simplify unwrapping Filter*Reader
> ---------------------------------
>
>                 Key: LUCENE-8503
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8503
>             Project: Lucene - Core
>          Issue Type: Improvement
>    Affects Versions: 7.5, master (8.0)
>            Reporter: Simon Willnauer
>            Priority: Major
>             Fix For: 7.5, master (8.0)
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
>  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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org