WiscDB
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends
Public Member Functions | Public Attributes
wiscdb::PageHeader Struct Reference

Header metadata in a page. More...

#include <page.h>

List of all members.

Public Member Functions

bool operator== (const PageHeader &rhs) const

Public Attributes

std::uint16_t free_space_lower_bound
std::uint16_t free_space_upper_bound
SlotId num_slots
SlotId num_free_slots
PageId current_page_number
PageId next_page_number

Detailed Description

Header metadata in a page.

Header metadata in each page which tracks where space has been used and contains a pointer to the next page in the file.

Definition at line 25 of file page.h.


Member Function Documentation

bool wiscdb::PageHeader::operator== ( const PageHeader rhs) const [inline]

Returns true if this page header is equal to the other.

Parameters:
rhsOther page header to compare against.
Returns:
True if the other header is equal to this one.

Definition at line 66 of file page.h.


Member Data Documentation

Number of the page within the file.

Definition at line 53 of file page.h.

Lower bound of the free space. This is the offset of the first unused byte after the slot array.

Definition at line 30 of file page.h.

Upper bound of the free space. This is the offset of the last unused byte before the first data record.

Definition at line 36 of file page.h.

Number of the next used page in the file.

Definition at line 58 of file page.h.

Number of slots allocated but not in use.

Definition at line 48 of file page.h.

Number of slots currently allocated. This number may include slots which are unused but are in the middle of the slot array (due to record deletions).

Definition at line 43 of file page.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends