SwatDB
|
Public Attributes | |
std::fstream | file |
std::uint32_t | capacity |
std::unordered_set< PageNum > | unused_pages |
std::mutex | file_mtx |
Metadata struct that stores the fstream, capacity, and set of unused pages in the given relation/index file. Is the value type in fileMap. SerializedFileInfo Struct is used to initialize DiskFileInfo capacity and bitmap.
std::uint32_t DiskManager::DiskFileInfo::capacity |
The total number of pages alloted in the relation/index file.
std::fstream DiskManager::DiskFileInfo::file |
fstream of the relation/index file the disk can read and write to.
std::mutex DiskManager::DiskFileInfo::file_mtx |
A std::mutex for synchronized access to the corresponding Unix file.
std::unordered_set<PageNum> DiskManager::DiskFileInfo::unused_pages |
List of unused pages, identified by PageNum