Hash table class to keep track of pages in the buffer pool.
More...
#include <bufferHashTable.h>
List of all members.
Detailed Description
Hash table class to keep track of pages in the buffer pool.
Definition at line 43 of file bufferHashTable.h.
Constructor & Destructor Documentation
Member Function Documentation
Insert entry into hash table. Maps (file, pageNo) to bucket and inserts a HashItem.
- Parameters:
-
file | File object |
pageNo | Page number in the file |
frameNo | Frame number assigned to that page of the file |
- Exceptions:
-
Check if (file, pageNo) is currently in the buffer pool (ie. in the hash table). Returns frame number of location in pool
- Parameters:
-
file | File object |
pageNo | Page number in the file |
frameNo | Frame number reference containing the result of lookup |
- Exceptions:
-
Remove (file,pageNo) the buffer pool by deleting the appropriate item from hash table.
- Parameters:
-
file | File object |
pageNo | Page number in the file |
- Exceptions:
-
The documentation for this class was generated from the following file: