-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replace kVertex with kTag #3286
Changes from all commits
209e646
e625dd5
d5198d1
a90b613
cb660aa
42211db
45cd1c5
cf73d36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,13 @@ | |
namespace nebula { | ||
|
||
enum class NebulaKeyType : uint32_t { | ||
kVertex = 0x00000001, | ||
kTag_ = 0x00000001, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
kEdge = 0x00000002, | ||
kIndex = 0x00000003, | ||
kSystem = 0x00000004, | ||
kOperation = 0x00000005, | ||
kKeyValue = 0x00000006, | ||
// kVertex = 0x00000007, | ||
}; | ||
|
||
enum class NebulaSystemKeyType : uint32_t { | ||
|
@@ -41,7 +42,7 @@ static typename std::enable_if<std::is_integral<T>::value, T>::type readInt(cons | |
} | ||
|
||
// size of vertex key except vertexId | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. tag key |
||
static constexpr int32_t kVertexLen = sizeof(PartitionID) + sizeof(TagID); | ||
static constexpr int32_t kTagLen = sizeof(PartitionID) + sizeof(TagID); | ||
|
||
// size of vertex key except srcId and dstId | ||
static constexpr int32_t kEdgeLen = | ||
|
@@ -56,7 +57,7 @@ static constexpr uint8_t kPartitionOffset = 8; | |
// See KeyType enum | ||
static constexpr uint32_t kTypeMask = 0x000000FF; | ||
|
||
static constexpr int32_t kVertexIndexLen = sizeof(PartitionID) + sizeof(IndexID); | ||
static constexpr int32_t kTagIndexLen = sizeof(PartitionID) + sizeof(IndexID); | ||
|
||
static constexpr int32_t kEdgeIndexLen = | ||
sizeof(PartitionID) + sizeof(IndexID) + sizeof(EdgeRanking); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check the comment, other places may also need modify