Identifier for a record in a page. More...
#include <types.h>
Public Member Functions | |
bool | operator== (const RecordId &rhs) const |
bool | operator!= (const RecordId &rhs) const |
Public Attributes | |
PageId | page_number |
SlotId | slot_number |
bool badgerdb::RecordId::operator!= | ( | const RecordId & | rhs | ) | const [inline] |
Returns true if this record ID is different from the record as the given ID.
rhs | Record ID to compare against. |
Definition at line 57 of file types.h.
{ return (page_number != rhs.page_number) || (slot_number != rhs.slot_number); }
bool badgerdb::RecordId::operator== | ( | const RecordId & | rhs | ) | const [inline] |
Returns true if this record ID refers to the same record as the given ID.
rhs | Record ID to compare against. |
Definition at line 47 of file types.h.
{ return page_number == rhs.page_number && slot_number == rhs.slot_number; }