You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2013/09/10 23:05:52 UTC
[jira] [Commented] (HBASE-9493) Rename CellUtil#get*Array to
CellUtil#clone*
[ https://issues.apache.org/jira/browse/HBASE-9493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13763518#comment-13763518 ]
stack commented on HBASE-9493:
------------------------------
+1 This is an improvement.
> Rename CellUtil#get*Array to CellUtil#clone*
> --------------------------------------------
>
> Key: HBASE-9493
> URL: https://issues.apache.org/jira/browse/HBASE-9493
> Project: HBase
> Issue Type: Sub-task
> Affects Versions: 0.95.2
> Reporter: Jonathan Hsieh
> Assignee: Jonathan Hsieh
> Fix For: 0.98.0, 0.96.0
>
> Attachments: hbase-9493.patch
>
>
> To make reading code easier, we should rename the CellUtil#get*Array methods (Value,Qualifier,Family,Row) to to CellUtil#clone*. This eliminates the possibly confusion between the semantics of these methods (which allocate-copy) and that of Cell#get*Array (which essentially just returns a pointer).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira