You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "chenxu (Jira)" <ji...@apache.org> on 2019/11/08 08:39:00 UTC

[jira] [Commented] (HBASE-22888) Share some stuffs with the initial reader when new stream reader created

    [ https://issues.apache.org/jira/browse/HBASE-22888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16969945#comment-16969945 ] 

chenxu commented on HBASE-22888:
--------------------------------

Thanks for the review.

> Share some stuffs with the initial reader when new stream reader created
> ------------------------------------------------------------------------
>
>                 Key: HBASE-22888
>                 URL: https://issues.apache.org/jira/browse/HBASE-22888
>             Project: HBase
>          Issue Type: Improvement
>          Components: HFile, regionserver
>    Affects Versions: 2.0.0
>            Reporter: chenxu
>            Assignee: chenxu
>            Priority: Major
>             Fix For: 3.0.0, 2.3.0
>
>
> When switching pread to stream read, new HFileReaderImpl will be create, but the two different readers do not share informations with each other. maybe we can divide HFileReaderImpl into two different class, such as HFilePreadReader and HFileStreamReader. When constructing HFileStreamReader, it will copy some stuffs (fileInfo, index, etc) from an already existing Reader, and no need to do prefetch operations.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)