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

chenglei updated HBASE-27954:
-----------------------------
    Description: The code to get the {{midkey}} in {{midLeafBlock}} in  
{{HFileBlockIndex.CellBasedKeyBlockIndexReader.midkey}} method is almost the 
same as  {{HFileBlockIndex.BlockIndexReader.getNonRootIndexedKey}}, we could 
use the {{HFileBlockIndex.BlockIndexReader.getNonRootIndexedKey}} directly in  
{{HFileBlockIndex.CellBasedKeyBlockIndexReader.midkey}}.  (was: In 
{{HFileBlockIndex}}, the code to get the {{midkey}} in {{midLeafBlock}} in  
{{HFileBlockIndex.CellBasedKeyBlockIndexReader.midkey}} is almost the same as  
{{HFileBlockIndex.BlockIndexReader.getNonRootIndexedKey}}, we could use the 
{{HFileBlockIndex.BlockIndexReader.getNonRootIndexedKey}} directly in  
{{HFileBlockIndex.CellBasedKeyBlockIndexReader.midkey}}.)

> Eliminate duplicate code for  getNonRootIndexedKey in HFileBlockIndex
> ---------------------------------------------------------------------
>
>                 Key: HBASE-27954
>                 URL: https://issues.apache.org/jira/browse/HBASE-27954
>             Project: HBase
>          Issue Type: Bug
>          Components: HFile
>    Affects Versions: 3.0.0-alpha-4, 4.0.0-alpha-1
>            Reporter: chenglei
>            Priority: Major
>
> The code to get the {{midkey}} in {{midLeafBlock}} in  
> {{HFileBlockIndex.CellBasedKeyBlockIndexReader.midkey}} method is almost the 
> same as  {{HFileBlockIndex.BlockIndexReader.getNonRootIndexedKey}}, 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