7#ifndef DMLC_IO_HDFS_FILESYS_H_
8#define DMLC_IO_HDFS_FILESYS_H_
35 virtual void ListDirectory(
const URI &path, std::vector<FileInfo> *out_list);
46 const char*
const flag,
62 if (namenode !=
"default" && instance.namenode_ != namenode) {
63 instance.ResetNamenode(namenode);
72 void ResetNamenode(
const std::string &namenode);
74 std::string namenode_;
interface of i/o stream that support seek
Definition io.h:109
HDFS file system.
Definition hdfs_filesys.h:20
virtual SeekStream * OpenForRead(const URI &path, bool allow_null)
open a seekable stream for read
Definition hdfs_filesys.cc:200
virtual FileInfo GetPathInfo(const URI &path)
get information about a path
Definition hdfs_filesys.cc:156
virtual void ListDirectory(const URI &path, std::vector< FileInfo > *out_list)
list files in a directory
Definition hdfs_filesys.cc:166
virtual ~HDFSFileSystem()
destructor
Definition hdfs_filesys.cc:113
static HDFSFileSystem * GetInstance(const std::string &namenode="default")
get a singleton of HDFSFileSystem when needed
Definition hdfs_filesys.h:59
virtual SeekStream * Open(const URI &path, const char *const flag, bool allow_null)
open a stream, will report error and exit if bad thing happens NOTE: the Stream can continue to work ...
Definition hdfs_filesys.cc:177
Utilities to manipulate files.
namespace for dmlc
Definition array_view.h:12