Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D7E40200B55 for ; Sun, 17 Jul 2016 05:50:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CA121160A7C; Sun, 17 Jul 2016 03:50:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 43E34160A6C for ; Sun, 17 Jul 2016 05:50:27 +0200 (CEST) Received: (qmail 46930 invoked by uid 500); 17 Jul 2016 03:50:21 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 46917 invoked by uid 99); 17 Jul 2016 03:50:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Jul 2016 03:50:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8CE7F2C0034 for ; Sun, 17 Jul 2016 03:50:20 +0000 (UTC) Date: Sun, 17 Jul 2016 03:50:20 +0000 (UTC) From: "Xiang Li (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-14881) Provide a Put API that uses the provided row without coping MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 17 Jul 2016 03:50:28 -0000 [ https://issues.apache.org/jira/browse/HBASE-14881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15381072#comment-15381072 ] Xiang Li commented on HBASE-14881: ---------------------------------- I think this enhancement does not apply to {{Put(ByteBuffer row)}} or {{Put(ByteBuffer row, long ts)}} either,because this.row takes the remaining part of the byte array which backs the ByteBuffer, right? > 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)