16 #ifndef IMPALA_RUNTIME_HDFS_FS_CACHE_H
17 #define IMPALA_RUNTIME_HDFS_FS_CACHE_H
20 #include <boost/scoped_ptr.hpp>
21 #include <boost/unordered_map.hpp>
22 #include <boost/thread/mutex.hpp>
41 typedef boost::unordered_map<std::string, hdfsFS>
HdfsFsMap;
string path("/usr/lib/sasl2:/usr/lib64/sasl2:/usr/local/lib/sasl2:/usr/lib/x86_64-linux-gnu/sasl2")
boost::unordered_map< std::string, hdfsFS > HdfsFsMap
HdfsFsCache & operator=(HdfsFsCache const &l)
Status GetConnection(const std::string &path, hdfsFS *fs, HdfsFsMap *local_cache=NULL)
static string GetNameNodeFromPath(const string &path, string *err)
static boost::scoped_ptr< HdfsFsCache > instance_
Singleton instance. Instantiated in Init().
static HdfsFsCache * instance()
static void Init()
Initializes the cache. Must be called before any other APIs.
Status GetLocalConnection(hdfsFS *fs)
Get connection to the local filesystem.