hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gopal V (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10047) Allow Compressor/Decompressor APIs to expose a Direct ByteBuffer API
Date Tue, 22 Oct 2013 12:16:43 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-10047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13801754#comment-13801754

Gopal V commented on HADOOP-10047:

I smashed my way out of this problem (for testing's sake) - https://github.com/t3rmin4t0r/zlib-violator/

But that sort of proves how to do it, in a rather sad way.

> Allow Compressor/Decompressor APIs to expose a Direct ByteBuffer API
> --------------------------------------------------------------------
>                 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-WIP.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 new DirectCompressor and DirectDecompressor interfaces
to the io.compress, to indicate codecs which want to surface the direct buffer layer upwards.
> The implementation may or may not copy the buffers passed in, but should work with direct
heap/mmap buffers and cannot assume .array() availability.

This message was sent by Atlassian JIRA

View raw message