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

chenglei resolved HBASE-27954.
------------------------------
    Resolution: Fixed

> Eliminate duplicate code for  getNonRootIndexedKey in HFileBlockIndex
> ---------------------------------------------------------------------
>
>                 Key: HBASE-27954
>                 URL: https://issues.apache.org/jira/browse/HBASE-27954
>             Project: HBase
>          Issue Type: Improvement
>          Components: HFile
>    Affects Versions: 3.0.0-alpha-4, 4.0.0-alpha-1
>            Reporter: chenglei
>            Assignee: chenglei
>            Priority: Major
>             Fix For: 2.6.0, 3.0.0-beta-1
>
>
> The code to get the {{midkey}} by {{midLeafBlock}} in  
> {{HFileBlockIndex.CellBasedKeyBlockIndexReader.midkey}} method is almost the 
> same as  {{HFileBlockIndex.BlockIndexReader.getNonRootIndexedKey}}, the code 
> is somewhat complicated, we could use the 
> {{HFileBlockIndex.BlockIndexReader.getNonRootIndexedKey}} directly in  
> {{HFileBlockIndex.CellBasedKeyBlockIndexReader.midkey}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to