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

Bryan Duxbury commented on HBASE-430:
-------------------------------------

I'm thinking we could add a class called RowResult, which has a Text row and 
HBaseMapWritable<Text, Cell> columns. This itself can be a writable. 

Then, when you call scanner.next, you can just return a single record from the 
method instead of a bool + modify parameters. If it's null, there's nothing 
more left.

> Performance: Scanners and getRow return maps with duplicate data
> ----------------------------------------------------------------
>
>                 Key: HBASE-430
>                 URL: https://issues.apache.org/jira/browse/HBASE-430
>             Project: Hadoop HBase
>          Issue Type: Improvement
>            Reporter: Bryan Duxbury
>            Priority: Minor
>
> Right now, whenever we get back multiple cells worth of data at a time, we do 
> so in a map of HStoreKey->byte[]. This means that there is a duplicated Text 
> row and long timestamp at the very least between every cell. This is quite a 
> bit wasted. It also means we have to do a lot of translation every time. 
> We could create a new Writable that contains just one row, one timestamp, and 
> a map of Text->byte[].

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to