Single-file Disk Manager (cont)
The pageOffset() function uses the DB map
- takes a
PageId value
- uses the DB space map
- returns an absolute file offset
E.g. each table is allocated large contiguous segment of file
- get start address of
relation(PageId) from map
- add
pageNumber(PageId)*PAGESIZE to give offset
|