taco-db  0.1.0
Public Member Functions | Public Attributes | List of all members
taco::RecordId Struct Reference

The record ID of a record on a page is a pair of ‘(PageNumber, SlotId)’. More...

#include <storage/Record.h>

Public Member Functions

 RecordId ()
 
 RecordId (PageNumber pid)
 
 RecordId (PageNumber pid, SlotId sid)
 
void SetInvalid ()
 
constexpr bool IsValid () const
 
std::string ToString () const
 

Public Attributes

PageNumber pid
 
SlotId sid
 
uint16_t reserved
 2-byte padding for alignment, but it's currently unused. More...
 

Detailed Description

The record ID of a record on a page is a pair of ‘(PageNumber, SlotId)’.

Constructor & Destructor Documentation

◆ RecordId() [1/3]

taco::RecordId::RecordId ( )
inline

◆ RecordId() [2/3]

taco::RecordId::RecordId ( PageNumber  pid)
inline

◆ RecordId() [3/3]

taco::RecordId::RecordId ( PageNumber  pid,
SlotId  sid 
)
inline

Member Function Documentation

◆ IsValid()

constexpr bool taco::RecordId::IsValid ( ) const
inlineconstexpr

◆ SetInvalid()

void taco::RecordId::SetInvalid ( )
inline

◆ ToString()

std::string taco::RecordId::ToString ( ) const
inline

Member Data Documentation

◆ pid

PageNumber taco::RecordId::pid

◆ reserved

uint16_t taco::RecordId::reserved

2-byte padding for alignment, but it's currently unused.

◆ sid

SlotId taco::RecordId::sid

The documentation for this struct was generated from the following file: