28 namespace File_Namespace {
31 std::stringstream file_name;
32 file_name <<
"table_" << db_id <<
"_" << tb_id <<
"/";
33 return file_name.str();
46 CachingFileMgr(
const std::string& base_path,
const size_t num_reader_threads = 0);
56 inline MgrType
getMgrType()
override {
return CACHING_FILE_MGR; };
uint64_t getSpaceReservedByTable(int db_id, int tb_id)
uint64_t getMetadataSpaceReservedByTable(int db_id, int tb_id)
uint64_t getWrapperSpaceReservedByTable(int db_id, int tb_id)
std::string getStringMgrType() override
size_t getDefaultPageSize()
std::string get_dir_name_for_table(int db_id, int tb_id)
std::string getOrAddTableDir(int db_id, int tb_id)
Returns (and optionally creates) a subdirectory for table-specific persistent data (e...
void closeRemovePhysical() override
size_t getMaxSize() override
std::string describeSelf() override
void clearForTable(int db_id, int tb_id)
Removes all data related to the given table (pages and subdirectories).
bool isAllocationCapped() override
bool coreInit() override
Determines file path, and if exists, runs file migration and opens and reads epoch file...
size_t getInUseSize() override
size_t defaultPageSize_
number of threads used when loading data
MgrType getMgrType() override
bool hasFileMgrKey() const override
Query to determine if the contained pages will have their database and table ids overriden by the fil...
uint64_t getChunkSpaceReservedByTable(int db_id, int tb_id)
CachingFileMgr(const std::string &base_path, const size_t num_reader_threads=0)
A FileMgr capable of limiting it's size and storing data from multiple tables in a shared directory...
size_t getAllocated() override