OmniSciDB
a5dc49c757
|
A logical page (Page) belongs to a file on disk. More...
#include <Page.h>
Public Member Functions | |
Page (int32_t fileId, size_t pageNum) | |
page number More... | |
Page () | |
bool | isValid () |
bool | operator< (const Page other) const |
Public Attributes | |
int32_t | fileId |
size_t | pageNum |
unique identifier of the owning file More... | |
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.
|
inline |
|
inline |
|
inline |
|
inline |
int32_t File_Namespace::Page::fileId |
Definition at line 47 of file Page.h.
Referenced by File_Namespace::FileBuffer::append(), File_Namespace::FileBuffer::copyPage(), File_Namespace::FileMgr::copyPage(), File_Namespace::FileMgr::copyPageWithoutHeaderSize(), File_Namespace::FileMgr::copySourcePageForCompaction(), File_Namespace::FileBuffer::freePage(), File_Namespace::FileBuffer::initMetadataAndPageDataSize(), isValid(), operator<(), File_Namespace::FileBuffer::readMetadata(), File_Namespace::FileMgr::sortAndCopyFilePagesForCompaction(), File_Namespace::FileBuffer::write(), File_Namespace::FileBuffer::writeHeader(), and File_Namespace::FileBuffer::writeMetadata().
size_t File_Namespace::Page::pageNum |
unique identifier of the owning file
Definition at line 48 of file Page.h.
Referenced by File_Namespace::FileBuffer::append(), File_Namespace::FileBuffer::copyPage(), File_Namespace::FileMgr::copyPage(), File_Namespace::FileMgr::copyPageWithoutHeaderSize(), File_Namespace::FileMgr::copySourcePageForCompaction(), File_Namespace::FileBuffer::freePage(), operator<(), File_Namespace::FileBuffer::readMetadata(), File_Namespace::FileBuffer::write(), File_Namespace::FileBuffer::writeHeader(), and File_Namespace::FileBuffer::writeMetadata().