[
https://issues.apache.org/jira/browse/HBASE-12415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14521892#comment-14521892
]
Jean-Marc Spaggiari commented on HBASE-12415:
---------------------------------------------
[~apurtell]
add (byte[] x2) and add (byte[] x 3) don't have to do the loop to count the
total size of the array. So they might be few cycles faster. If they are used
intensively somewhere, changing them by a call to add (bytes[]...) might have a
small impact. Also, if replace them, we need to change the testing code. So I
think we should keep it that way
[~srikanth235]
It's an utility class, so can be used anywhere by any client. It is very useful
when you "play" with composite keys and you have more than 3 fields.
> Add add(byte[][] arrays) to Bytes.
> ----------------------------------
>
> Key: HBASE-12415
> URL: https://issues.apache.org/jira/browse/HBASE-12415
> Project: HBase
> Issue Type: Improvement
> Reporter: Jean-Marc Spaggiari
> Assignee: Jean-Marc Spaggiari
> Attachments: HBASE-12415-v0-trunk.patch, HBASE-12415-v1-trunk.patch,
> HBASE-12415-v2-trunk.patch
>
>
> Bytes already implements add (byte[] a, byte[] b) and add (byte[] a, byte[]
> b, byte[] c). Goal of this JIRA is to add a generic add (byte[][] arrays)
> method.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)