45 typedef std::uint32_t SlotId;
54 bool operator==(
const PageId& other)
const{
55 return (file_id == other.file_id) && (page_num == other.page_num);
58 bool operator!=(
const PageId& other)
const{
59 return (file_id != other.file_id) || (page_num != other.page_num);
70 bool operator==(
const RecordId& other)
const{
71 return (page_num == other.page_num) && (slot_id == other.slot_id);
74 bool operator!=(
const RecordId& other)
const{
75 return (page_num != other.page_num) || (slot_id != other.slot_id);
const std::uint32_t INVALID_FILE_ID
Definition: swatdb_types.h:179
std::uint32_t PageNum
Definition: swatdb_types.h:34
CatType
Definition: swatdb_types.h:98
const std::uint32_t HEADER_PAGE_NUM
Definition: swatdb_types.h:174
const SlotId INVALID_SLOT_ID
Definition: swatdb_types.h:195
const float MAX_HEAP_PAGE_LOAD
Definition: swatdb_types.h:206
const std::uint32_t MAX_FILE_NAME_LEN
Definition: swatdb_types.h:158
const std::uint32_t FILE_MAX_CAPACITY
Definition: swatdb_types.h:115
const std::uint32_t MAX_RECORD_SIZE
Definition: swatdb_types.h:140
Definition: swatdb_types.h:66
const std::uint32_t MAX_FILE_NUM
Definition: swatdb_types.h:124
const RecordId INVALID_RECORD_ID
Definition: swatdb_types.h:200
Definition: swatdb_types.h:50
const std::uint32_t MAX_PAGE_NUM
Definition: swatdb_types.h:152
const std::uint32_t PAGE_SIZE
Definition: swatdb_types.h:129
FieldType
Definition: swatdb_types.h:87
std::uint32_t FrameId
Index of each frame in the bufferpool of BufferManager.
Definition: swatdb_types.h:40
std::uint32_t FieldId
Definition: swatdb_types.h:82
const std::uint32_t BUF_SIZE
Definition: swatdb_types.h:163
std::uint32_t FileId
Definition: swatdb_types.h:29
const std::uint32_t INVALID_SLOT_OFFSET
Definition: swatdb_types.h:190
const PageId INVALID_PAGE_ID
Definition: swatdb_types.h:184
const std::uint32_t INVALID_PAGE_NUM
Definition: swatdb_types.h:168