Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D48FC10D91 for ; Wed, 30 Oct 2013 19:07:35 +0000 (UTC) Received: (qmail 14326 invoked by uid 500); 30 Oct 2013 19:07:31 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 13463 invoked by uid 500); 30 Oct 2013 19:07:27 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 13383 invoked by uid 99); 30 Oct 2013 19:07:26 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Oct 2013 19:07:26 +0000 Date: Wed, 30 Oct 2013 19:07:25 +0000 (UTC) From: "Gopal V (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-10047) Add a directbuffer Decompressor API to hadoop 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/HADOOP-10047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13809495#comment-13809495 ] Gopal V commented on HADOOP-10047: ---------------------------------- I will redo the original WIP patch's test-case for this interface - it had a decompressor loop. As for the method visibility, If only inflateDirect() had to be exposed, I would have gone down that path. I read the code again just now and the shim class is rather odd and kludgey. For the sake of readability & clarity, I think I should move the entire method from the shim into a package private method in ZlibDecompressor and get rid of the extra class overhead. I will put this into PA tomorrow once the tests are done and they pass. > Add a directbuffer Decompressor API to hadoop > --------------------------------------------- > > Key: HADOOP-10047 > URL: https://issues.apache.org/jira/browse/HADOOP-10047 > Project: Hadoop Common > Issue Type: New Feature > Components: io > Reporter: Gopal V > Assignee: Gopal V > Labels: compression > Attachments: DirectCompressor.html, DirectDecompressor.html, HADOOP-10047-redo-WIP.patch, HADOOP-10047-WIP.patch, HADOOP-10047-with-tests.patch > > > With the Zero-Copy reads in HDFS (HDFS-5260), it becomes important to perform all I/O operations without copying data into byte[] buffers or other buffers which wrap over them. > This is a proposal for adding a DirectDecompressor interface to the io.compress, to indicate codecs which want to surface the direct buffer layer upwards. > The implementation should work with direct heap/mmap buffers and cannot assume .array() availability. -- This message was sent by Atlassian JIRA (v6.1#6144)