std::uint16_t item_offset
PageId next_page_number() const
void updateRecord(const RecordId &record_id, const std::string &record_data)
std::string getRecord(const RecordId &record_id) const
Iterator for iterating over the records in a page.
static const std::size_t DATA_SIZE
static const std::size_t SIZE
Class which represents a fixed-size database page containing records.
std::uint16_t item_length
PageId page_number() const
Slot metadata that tracks where a record is in the data space.
static const SlotId INVALID_SLOT
std::uint16_t getFreeSpace() const
static const PageId INVALID_NUMBER
bool hasSpaceForRecord(const std::string &record_data) const
void deleteRecord(const RecordId &record_id)
RecordId insertRecord(const std::string &record_data)