hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo Nicholas Sze (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5395) write(ByteBuffer) method
Date Thu, 13 Jul 2017 21:34:00 GMT

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

Tsz Wo Nicholas Sze commented on HDFS-5395:
-------------------------------------------

Please add some tests for the new write(ByteBuffer) method, especially, we should add tests
with mixing the write(ByteBuffer) and write(byte[], ...) calls.

> write(ByteBuffer) method
> ------------------------
>
>                 Key: HDFS-5395
>                 URL: https://issues.apache.org/jira/browse/HDFS-5395
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs-client
>    Affects Versions: 2.7.3, 3.0.0-alpha4
>            Reporter: john lilley
>            Assignee: Bharat Viswanadham
>            Priority: Minor
>         Attachments: HDFS-5395.01.patch, HDFS-5395.02.patch
>
>
> It would be great to have a write(ByteBuffer) API in FSDataOutputStream, so that JNI
callers could perform a write without making an extra copy.  The complementary read(ByteBuffer)
call exists in FSDataInputStream, so this would seem to be an omission.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message