1 #ifndef LIBFASTER_HFDSENGINE_H 2 #define LIBFASTER_HFDSENGINE_H 16 CR = O_RDONLY | O_CREAT,
17 CW = O_WRONLY | O_CREAT
28 std::vector<char> _buffer;
32 hdfsFile(
void * fs, std::string & path, fileMode mode);
37 size_t read(
char * v,
size_t n);
38 size_t write(
char * v,
size_t n);
39 size_t seek(
size_t offset);
41 size_t readLine(
char * v,
size_t n,
char sep);
43 std::vector<std::deque<int>> getBlocksLocations();
64 void del(std::string path);
65 bool exists(std::string path);