21 #ifndef DISPATCH_BESUNCOMPRESSCACHE_H_ 22 #define DISPATCH_BESUNCOMPRESSCACHE_H_ 24 #include "BESFileLockingCache.h" 27 friend class uncompressT;
29 static bool d_enabled;
31 static void delete_instance()
39 string d_dimCacheFilePrefix;
40 unsigned long d_maxCacheSize;
45 bool is_valid(
const std::string &cache_file_name,
const std::string &dataset_file_name);
47 static string getCacheDirFromConfig();
48 static string getCachePrefixFromConfig();
49 static unsigned long getCacheSizeFromConfig();
53 BESUncompressCache(
const string &data_root_dir,
const string &cache_dir,
const string &prefix,
54 unsigned long long size);
57 static const string DIR_KEY;
58 static const string PREFIX_KEY;
59 static const string SIZE_KEY;
62 const string &prefix,
unsigned long long size);
Implementation of a caching mechanism for compressed data.
virtual string get_cache_file_name(const string &src, bool mangle=true)
Build the name of file that will holds the uncompressed data from 'src' in the cache.
static BESUncompressCache * get_instance()