Class File_Namespace::TableFileMgr

class TableFileMgr

Public Functions

TableFileMgr(const std::string &table_path)
~TableFileMgr()
void incrementEpoch()

increment the epoch for this subdir (not synced to disk).

void writeAndSyncEpochToDisk()

Write and flush the epoch to the epoch file on disk.

int32_t getEpoch() const

Returns the current epoch (locked)

void removeDiskContent() const

Removes all disk data for the subdir.

size_t getReservedSpace() const

Returns the disk space used (in bytes) for the subdir.

void deleteWrapperFile() const

Deletes only the wrapper file on disk.

void writeWrapperFile(const std::string &doc) const

Writes wrapper file to disk.

Private Members

std::string table_path_
std::string epoch_file_path_
std::string wrapper_file_path_
Epoch epoch_
bool is_checkpointed_ = true
FILE *epoch_file_ = nullptr
mapd_shared_mutex table_mutex_