-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
guodong
authored and
guodong
committed
Feb 8, 2023
1 parent
c35825b
commit 68278ed
Showing
73 changed files
with
1,250 additions
and
657 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#include "common/types/internal_id_t.h" | ||
|
||
namespace kuzu { | ||
namespace common { | ||
|
||
internalID_t::internalID_t() : offset{INVALID_NODE_OFFSET}, tableID{INVALID_TABLE_ID} {} | ||
|
||
internalID_t::internalID_t(offset_t offset, table_id_t tableID) | ||
: offset(offset), tableID(tableID) {} | ||
|
||
bool internalID_t::operator==(const internalID_t& rhs) const { | ||
return offset == rhs.offset && tableID == rhs.tableID; | ||
} | ||
|
||
bool internalID_t::operator!=(const internalID_t& rhs) const { | ||
return offset != rhs.offset || tableID != rhs.tableID; | ||
} | ||
|
||
bool internalID_t::operator>(const internalID_t& rhs) const { | ||
return (tableID > rhs.tableID) || (tableID == rhs.tableID && offset > rhs.offset); | ||
} | ||
|
||
bool internalID_t::operator>=(const internalID_t& rhs) const { | ||
return (tableID > rhs.tableID) || (tableID == rhs.tableID && offset >= rhs.offset); | ||
} | ||
|
||
bool internalID_t::operator<(const internalID_t& rhs) const { | ||
return (tableID < rhs.tableID) || (tableID == rhs.tableID && offset < rhs.offset); | ||
} | ||
|
||
bool internalID_t::operator<=(const internalID_t& rhs) const { | ||
return (tableID < rhs.tableID) || (tableID == rhs.tableID && offset <= rhs.offset); | ||
} | ||
|
||
} // namespace common | ||
} // namespace kuzu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.