64 int hash(
const File* file,
const PageId pageNo);
106 void remove(
const File* file,
const PageId pageNo);
BufHashTbl(const int htSize)
std::uint32_t FrameId
Identifier for a frame in buffer pool.
Declarations for buffer pool hash table.
Class which represents a file in the filesystem containing database pages.
std::uint32_t PageId
Identifier for a page in a file.
bool lookup(const File *file, const PageId pageNo, FrameId &frameNo)
Hash table class to keep track of pages in the buffer pool.
void insert(const File *file, const PageId pageNo, const FrameId frameNo)