You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Xiang Li (JIRA)" <ji...@apache.org> on 2016/07/13 15:58:20 UTC
[jira] [Commented] (HBASE-14881) Provide a Put API that uses the
provided row without coping
[ https://issues.apache.org/jira/browse/HBASE-14881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15375253#comment-15375253 ]
Xiang Li commented on HBASE-14881:
----------------------------------
[~jinghe], is the patch you are expecting to have?
I provide 2 new constructors with a boolean as one of the parameters to decide if it makes the copy or not and do not change the existing constructors.
The 2 new constructors take the whole byte[] row inputted as the row key, and do not support to specify offset and length.
> Provide a Put API that uses the provided row without coping
> -----------------------------------------------------------
>
> Key: HBASE-14881
> URL: https://issues.apache.org/jira/browse/HBASE-14881
> Project: HBase
> Issue Type: Improvement
> Reporter: Jerry He
> Assignee: Xiang Li
> Attachments: HBASE-14881-master-v0.patch
>
>
> The current available Put API always makes a copy of the rowkey.
> Let's provide an API that accepts an immutable byte array as rowkey without making a copy.
> There are cases where the caller of Put has created the immutable byte array (e.g from a serializer) and will not change it for the Put duration. We can avoid making a copy again.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)