Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 08972DA2F for ; Tue, 18 Dec 2012 05:44:15 +0000 (UTC) Received: (qmail 80229 invoked by uid 500); 18 Dec 2012 05:44:14 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 79966 invoked by uid 500); 18 Dec 2012 05:44:14 -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 79934 invoked by uid 99); 18 Dec 2012 05:44:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 05:44:12 +0000 Date: Tue, 18 Dec 2012 05:44:12 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-7381) Lightweight data transfer for Class Result MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-7381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13534671#comment-13534671 ] Ted Yu commented on HBASE-7381: ------------------------------- @Hao: Can you show us code snippet where the new API is used ? > Lightweight data transfer for Class Result > ------------------------------------------ > > Key: HBASE-7381 > URL: https://issues.apache.org/jira/browse/HBASE-7381 > Project: HBase > Issue Type: Improvement > Components: Client > Reporter: Cheng Hao > Priority: Trivial > Fix For: 0.94.4 > > Attachments: result_lightweight_copy.patch > > > Currently,the data transferring between 2 Result objects in the same process, will cause additional/unnecessary data parsing & copying; as we have to do that via "Writables.copyWritable(result1, result2)", which internally is serialization, data copying, and de-serialization. > The use case are quite common when integrated with Hadoop job running; > The protocol org.apache.hadoop.mapred.RecordReader defined in Hadoop, provides 3 interfaces: > 1) K createKey(); > 2) V createValue(); > 3) boolean next(K key, V value) throws IOException; > In the 3rd method implementation, most likely requires the value (should be Result object) to be filled, with the Result object from HBase. -- 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