hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhanwei Wang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-7011) Implement basic utilities for libhdfs3
Date Wed, 01 Oct 2014 01:01:34 GMT

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

Zhanwei Wang commented on HDFS-7011:
------------------------------------

Hi Abraham

Both FileWrapper and CFileWrapper have read interface. 

{code}

class FileWrapper {
public:
    virtual ~FileWrapper() {
    }

    virtual bool open(int fd, bool delegate) = 0;
    virtual bool open(const std::string &path) = 0;
    virtual void close() = 0;
    virtual const char *read(std::vector<char> &buffer, int32_t size) = 0;
    virtual void copy(char *buffer, int32_t size) = 0;
    virtual void seek(int64_t position) = 0;
};

{code}


> Implement basic utilities for libhdfs3
> --------------------------------------
>
>                 Key: HDFS-7011
>                 URL: https://issues.apache.org/jira/browse/HDFS-7011
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: hdfs-client
>            Reporter: Zhanwei Wang
>            Assignee: Colin Patrick McCabe
>         Attachments: HDFS-7011-pnative.001.patch, HDFS-7011-pnative.002.patch, HDFS-7011.patch
>
>
> Implement basic utilities such as hash, exception handling, logger, configure parser,
checksum calculate and so on.



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

Mime
View raw message