Struct File_Namespace::Page

struct Page

A logical page (Page) belongs to a file on disk.

A Page struct stores the file id for the file it belongs to, and it stores its page number and number of used bytes within the page.

Note: the number of used bytes should not be greater than the page size. The page size is determined by the containing file.

Public Functions

Page(int32_t fileId, size_t pageNum)

page number

Constructor

Page()
bool isValid()
bool operator<(const Page other) const

Public Members

int32_t fileId
size_t pageNum

unique identifier of the owning file