-
Notifications
You must be signed in to change notification settings - Fork 504
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
add option vertex.check_adjacent_vertex_exist #837
Conversation
Codecov Report
@@ Coverage Diff @@
## master #837 +/- ##
=========================================
Coverage 72.25% 72.26%
- Complexity 4487 4498 +11
=========================================
Files 287 287
Lines 21412 21430 +18
Branches 3017 3022 +5
=========================================
+ Hits 15472 15487 +15
- Misses 4428 4431 +3
Partials 1512 1512
Continue to review full report at Codecov.
|
query.mustSortByInput(false); | ||
Iterator<HugeVertex> it = this.queryVerticesFromBackend(query); | ||
QueryResults.fillMap(it, vertices); | ||
} | ||
|
||
return new MapperIterator<>(ids.iterator(), id -> { | ||
return vertices.get(id); | ||
HugeVertex vertex = vertices.get(id); |
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.
TODO: deal vertex with unmatch label
check_adjacent_vertex_exist=true: throw exception: vertex does not exist check_adjacent_vertex_exist=false: return vertex with "~undefined" label if not exist adjacent vertex, fix: #835 Change-Id: I30ce32ae358d0483888895a0017b77d55f346491
fix: #835 Change-Id: Iac7ea3c51092253f20a35a579460d8c7124c5f94
140ba77
to
6fce93b
Compare
when check_adjacent_vertex_exist=true:
throw exception: "vertex does not exist" if not exist adjacent vertex
when check_adjacent_vertex_exist=false:
return vertex with "~undefined" label if not exist adjacent vertex
fix: #835
Change-Id: I30ce32ae358d0483888895a0017b77d55f346491