You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org> on 2014/11/03 05:49:33 UTC

[jira] [Commented] (HBASE-12358) Create ByteBuffer backed Cell

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

ramkrishna.s.vasudevan commented on HBASE-12358:
------------------------------------------------

bq.On other hand, we are not going to have that many implementations of Cell... so if Cell answer false, then you presume it has implemented BBBCell... and use the BB methods. SOmething like that.
Yes something like that. But the comparators will have to do some more conditional checks if the cells on both sides are BB backed. If all cells are of the same type it is much easier.
To have hasArray() is fine but the way we consume it has to be measured for cases where one cell is BB and the other is from memstore which is byte[].

> Create ByteBuffer backed Cell
> -----------------------------
>
>                 Key: HBASE-12358
>                 URL: https://issues.apache.org/jira/browse/HBASE-12358
>             Project: HBase
>          Issue Type: Sub-task
>          Components: regionserver, Scanners
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>         Attachments: HBASE-12358.patch, HBASE-12358_1.patch, HBASE-12358_2.patch
>
>
> As part of HBASE-12224 and HBASE-12282 we wanted a Cell that is backed by BB.  Changing the core Cell impl would not be needed as it is used in server only.  So we will create a BB backed Cell and use it in the Server side read path. This JIRA just creates an interface that extends Cell and adds the needed API.
> The getTimeStamp and getTypebyte() can still refer to the original Cell API only.  The getXXxOffset() and getXXXLength() can also refer to the original Cell only.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)