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

Jesse Yates commented on HBASE-9834:
------------------------------------

KeyValues are immutable, so immutable bytes writable seemed a reasonable use. 
Also, I find ByteBuffer much harder to manage - we don't need all the 
flipping/setting/removing stuff. Also, in 0.94 we don't have ByteRange (but the 
immutable logic still holds from before).

Also, Phoenix uses ImmutableBytesWritable (or rather a subclass) everywhere, so 
dovetails nicely with their impl.

> Minimize byte[] copies for 'smart' clients
> ------------------------------------------
>
>                 Key: HBASE-9834
>                 URL: https://issues.apache.org/jira/browse/HBASE-9834
>             Project: HBase
>          Issue Type: Bug
>          Components: Client
>            Reporter: Jesse Yates
>            Assignee: Jesse Yates
>             Fix For: 0.94.13
>
>         Attachments: hbase-9834-0.94-v0.patch, hbase-9834-0.94-v1.patch
>
>
> 'Smart' clients (e.g. phoenix) that have in-depth knowledge of HBase often 
> bemoan the extra byte[] copies that must be done when building multiple 
> puts/deletes. We should provide a mechanism by which they can minimize these 
> copies, but still remain wire compatible. 



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to