Medial Code Documentation
Loading...
Searching...
No Matches
azure_filesys.h
Go to the documentation of this file.
1
7#ifndef DMLC_IO_AZURE_FILESYS_H_
8#define DMLC_IO_AZURE_FILESYS_H_
9
10#include <dmlc/filesystem.h>
11#include <vector>
12#include <string>
13
14namespace dmlc {
15namespace io {
16
18class AzureFileSystem : public FileSystem {
19 public:
20 virtual ~AzureFileSystem() {}
21
22 virtual FileInfo GetPathInfo(const URI &path) { return FileInfo(); }
23
24 virtual void ListDirectory(const URI &path, std::vector<FileInfo> *out_list);
25
26 virtual Stream *Open(const URI &path, const char* const flag, bool allow_null) {
27 return NULL;
28 }
29
30 virtual SeekStream *OpenForRead(const URI &path, bool allow_null) {
31 return NULL;
32 }
33
38 inline static AzureFileSystem *GetInstance(void) {
39 static AzureFileSystem instance;
40 return &instance;
41 }
42
43 private:
46
48 std::string azure_account_;
49
51 std::string azure_key_;
52};
53
54} // namespace io
55} // namespace dmlc
56
57#endif // DMLC_IO_AZURE_FILESYS_H_
interface of i/o stream that support seek
Definition io.h:109
interface of stream I/O for serialization
Definition io.h:30
Microsoft Azure Blob filesystem.
Definition azure_filesys.h:18
static AzureFileSystem * GetInstance(void)
get a singleton of AzureFileSystem when needed
Definition azure_filesys.h:38
Utilities to manipulate files.
namespace for dmlc
Definition array_view.h:12