hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dhruba borthakur (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-3051) A zero-copy read api from FSDataInputStream
Date Tue, 06 Mar 2012 08:48:59 GMT

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

dhruba borthakur commented on HDFS-3051:

The new API can be a new method in  FSDataInputStream.

public List<ByteBuffer> readFullyScatterGather(long position, int length)
    throws IOException {
    return ((PositionedReadable)in).readFullyScatterGather(position, length);


This will allow an application to read multiple sections of the file at the same time. It
will also allow HDFS to return mapped byte buffers or direct byte buffers.
> A zero-copy read api from FSDataInputStream
> -------------------------------------------
>                 Key: HDFS-3051
>                 URL: https://issues.apache.org/jira/browse/HDFS-3051
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs client
>            Reporter: dhruba borthakur
> It will be nice if we can get a new API from FSDtaInputStream that allows for zero-copy
read for hdfs readers.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message