Skip to content
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

BREAKING CHANGE(server): support "parent & child" EdgeLabel type #2662

Merged
merged 28 commits into from
Oct 9, 2024
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
write sub label id for range cond
VGalaxies committed Oct 3, 2024
commit a876ec0c95baf04e26e8a4281ffa21eee6c720a1
Original file line number Diff line number Diff line change
@@ -675,11 +675,13 @@ private Query writeQueryEdgeRangeCondition(ConditionQuery cq) {
direction = Directions.OUT;
}
Id label = cq.condition(HugeKeys.LABEL);
Id subLabel = cq.condition(HugeKeys.SUB_LABEL);

BytesBuffer start = BytesBuffer.allocate(BytesBuffer.BUF_EDGE_ID);
writePartitionedId(HugeType.EDGE, vertex, start);
start.write(direction.type().code());
start.writeId(label);
start.writeId(subLabel);

BytesBuffer end = BytesBuffer.allocate(BytesBuffer.BUF_EDGE_ID);
end.copyFrom(start);