hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Clampffer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-9368) Implement reads with implicit offset state in libhdfs++
Date Wed, 18 Nov 2015 20:47:11 GMT

     [ https://issues.apache.org/jira/browse/HDFS-9368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

James Clampffer updated HDFS-9368:
----------------------------------
    Attachment: HDFS-9368.HDFS-8707.002.patch

New patch:
-file ops return status rather than posix style numbers.  Changed parameters like nbytes of
read and offset for seek to pointers to be used as in/out params.
e.g.
size_t count = 100; how many bytes you'd like to read
MyFileHandle::read(mybuffer, &count);
count now set to how many bytes were read

-Changed Whence to ios_base::seekdir enum
-moved FileHandle constructor to .cc file
-InputStream::get_file_length now const and returns a uint64_t
-got rid of comment around cast

> Implement reads with implicit offset state in libhdfs++
> -------------------------------------------------------
>
>                 Key: HDFS-9368
>                 URL: https://issues.apache.org/jira/browse/HDFS-9368
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: hdfs-client
>            Reporter: James Clampffer
>            Assignee: James Clampffer
>         Attachments: HDFS-9368.HDFS-8707.000.patch, HDFS-9368.HDFS-8707.001.patch, HDFS-9368.HDFS-8707.002.patch
>
>
> Currently only positional reads are supported.  Implement a stateful read that keeps
track of offset into file.  Also expose it in the c bindings as hdfsRead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message