[ 
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.

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

{code}

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

        

Reply via email to