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 418C1200B5C for ; Thu, 11 Aug 2016 18:01:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 404B1160AB4; Thu, 11 Aug 2016 16:01:22 +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 B6F53160A93 for ; Thu, 11 Aug 2016 18:01:21 +0200 (CEST) Received: (qmail 84438 invoked by uid 500); 11 Aug 2016 16:01:20 -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 84414 invoked by uid 99); 11 Aug 2016 16:01:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2016 16:01:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9B1512C02A9 for ; Thu, 11 Aug 2016 16:01:20 +0000 (UTC) Date: Thu, 11 Aug 2016 16:01:20 +0000 (UTC) From: "Xiang Li (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HBASE-14882) Provide a Put API that adds the provided family, qualifier, value without copying MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 11 Aug 2016 16:01:22 -0000 [ https://issues.apache.org/jira/browse/HBASE-14882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15417487#comment-15417487 ] Xiang Li edited comment on HBASE-14882 at 8/11/16 4:00 PM: ----------------------------------------------------------- Got that, it is a good idea to use anonymous Cell! Thanks Stack! was (Author: water): Got that, anonymous Cell is a good idea! Thanks stack! > Provide a Put API that adds the provided family, qualifier, value without copying > --------------------------------------------------------------------------------- > > Key: HBASE-14882 > URL: https://issues.apache.org/jira/browse/HBASE-14882 > Project: HBase > Issue Type: Improvement > Reporter: Jerry He > Assignee: Xiang Li > > In the Put API, we have addImmutable() > {code} > /** > * See {@link #addColumn(byte[], byte[], byte[])}. This version expects > * that the underlying arrays won't change. It's intended > * for usage internal HBase to and for advanced client applications. > */ > public Put addImmutable(byte [] family, byte [] qualifier, byte [] value) > {code} > But in the implementation, the family, qualifier and value are still being copied locally to create kv. > Hopefully we should provide an API that truly uses immutable family, qualifier and value. -- This message was sent by Atlassian JIRA (v6.3.4#6332)