-
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
fix OLTP algorithm not check if source/target vertex exist #1156
Conversation
Change-Id: I068f5b3f3bb57d47c284309023cc6e9b8ab4c140
Codecov Report
@@ Coverage Diff @@
## master #1156 +/- ##
============================================
- Coverage 65.77% 65.76% -0.01%
Complexity 5654 5654
============================================
Files 356 356
Lines 28874 28874
Branches 4055 4055
============================================
- Hits 18991 18990 -1
- Misses 7996 7997 +1
Partials 1887 1887
Continue to review full report at Codecov.
|
@@ -380,6 +386,11 @@ protected Id getEdgeLabelId(Object label) { | |||
return SchemaLabel.getLabelId(this.graph, HugeType.EDGE, label); | |||
} | |||
|
|||
protected void checkVertexExist(Id vertexId) { | |||
// Throw NotFoundException if not exist vertex with id 'vertexId' | |||
this.graph.vertex(vertexId); |
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.
throw 400 instead of 404
Change-Id: I7eb4ceaccdc4a6b2a4a7b944edc83dff64a98f5d
…h and jaccard similar * fix OLTP algorithm not check if source/target vertex exist (#1156) * support customized kout and kneighbor * support multi node shortest path API * support template paths api * support jaccard similars find oltp api * use multi-thread to accelerate customized kout/kneighbor, multi-node-shortest-path, jaccard-similar and template-paths * big depth and both direction use multi threads, otherwise single threead * fix shortest path api NLP Change-Id: I7eb4ceaccdc4a6b2a4a7b944edc83dff64a98f5d
…h and jaccard similar * fix OLTP algorithm not check if source/target vertex exist (#1156) * support customized kout and kneighbor * support multi node shortest path API * support template paths api * support jaccard similars find oltp api * use multi-thread to accelerate customized kout/kneighbor, multi-node-shortest-path, jaccard-similar and template-paths * big depth and both direction use multi threads, otherwise single threead * fix shortest path api NLP Change-Id: I7eb4ceaccdc4a6b2a4a7b944edc83dff64a98f5d
…template paths (#1174) * Add customized kout/kneighbor, template path, multi-node-shortest-path and jaccard similar * fix OLTP algorithm not check if source/target vertex exist (#1156) * support customized kout and kneighbor * support multi node shortest path API * support template paths api * support jaccard similars find oltp api * use multi-thread to accelerate * big depth and both direction use multi threads, otherwise single threead * fix shortest path api NLP * Szzq paths improve (#51) * template path use concurrent HashSet to save paths in concurrent mode * support property filter for paths api * fix configuration not supported with auth (#55) * template path supports repeat times args (#57) * paths supports nearest args * oltp multiple threads reuse * add multiple thread depth config * fix group perperty can't be empty * upgrade api version to 58 * move customized kout/kneighbor to kout/kneighbor * move jaccard similar into jaccard similarity * fix kout/kneighbor withVertex not work * rebase ramtable * extract common traverser from template paths traversers * extract path traverser for template paths and collection paths * normalize traverser implements: #1173 Change-Id: I85aa1d4274554d65f85a0deb7ac596e65dbb503b
Change-Id: I068f5b3f3bb57d47c284309023cc6e9b8ab4c140