Kùzu C++ API
Loading...
Searching...
No Matches
internal_id_t.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <unordered_map>
5#include <unordered_set>
6#include <vector>
7
8#include "api.h"
9
10namespace kuzu {
11namespace common {
12
13// table id type alias
14using table_id_t = uint64_t;
15using table_id_vector_t = std::vector<table_id_t>;
16using table_id_set_t = std::unordered_set<table_id_t>;
17template<typename T>
18using table_id_map_t = std::unordered_map<table_id_t, T>;
19constexpr table_id_t INVALID_TABLE_ID = UINT64_MAX;
20
21// offset type alias
22using offset_t = uint64_t;
23constexpr offset_t INVALID_OFFSET = UINT64_MAX;
24
25// internal id type alias
26struct internalID_t;
29
30// System representation for internalID.
34
37
38 // comparison operators
39 bool operator==(const internalID_t& rhs) const;
40 bool operator!=(const internalID_t& rhs) const;
41 bool operator>(const internalID_t& rhs) const;
42 bool operator>=(const internalID_t& rhs) const;
43 bool operator<(const internalID_t& rhs) const;
44 bool operator<=(const internalID_t& rhs) const;
45};
46
47} // namespace common
48} // namespace kuzu
#define KUZU_API
Definition api.h:25
std::unordered_map< table_id_t, T > table_id_map_t
Definition internal_id_t.h:18
std::unordered_set< table_id_t > table_id_set_t
Definition internal_id_t.h:16
constexpr table_id_t INVALID_TABLE_ID
Definition internal_id_t.h:19
constexpr offset_t INVALID_OFFSET
Definition internal_id_t.h:23
uint64_t table_id_t
Definition internal_id_t.h:14
std::vector< table_id_t > table_id_vector_t
Definition internal_id_t.h:15
uint64_t offset_t
Definition internal_id_t.h:22
Definition alter_type.h:5
Definition internal_id_t.h:31
bool operator==(const internalID_t &rhs) const
internalID_t(offset_t offset, table_id_t tableID)
bool operator>(const internalID_t &rhs) const
offset_t offset
Definition internal_id_t.h:32
bool operator>=(const internalID_t &rhs) const
table_id_t tableID
Definition internal_id_t.h:33
bool operator!=(const internalID_t &rhs) const
bool operator<(const internalID_t &rhs) const
bool operator<=(const internalID_t &rhs) const