feat: optimising adjacency edge queries#2242
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2242 +/- ##
============================================
- Coverage 66.31% 65.82% -0.50%
+ Complexity 830 826 -4
============================================
Files 507 509 +2
Lines 42073 42103 +30
Branches 5831 5832 +1
============================================
- Hits 27902 27715 -187
- Misses 11415 11633 +218
+ Partials 2756 2755 -1 ☔ View full report in Codecov by Sentry. |
|
Thanks, could also open a summary issue for it (let other people know the progress of it & comment to assign) BTW, before submit PR we could open a single issue for it first (and discuss the main context then finish it) 🔢 |
hugegraph-api/src/main/java/org/apache/hugegraph/api/traversers/EdgeExistenceAPI.java
Outdated
Show resolved
Hide resolved
hugegraph-api/src/main/java/org/apache/hugegraph/api/traversers/EdgeExistenceAPI.java
Outdated
Show resolved
Hide resolved
hugegraph-api/src/main/java/org/apache/hugegraph/api/traversers/EdgeExistenceAPI.java
Outdated
Show resolved
Hide resolved
...raph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/EdgeExistenceTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-api/src/main/java/org/apache/hugegraph/api/traversers/EdgeExistenceAPI.java
Outdated
Show resolved
Hide resolved
...raph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/EdgeExistenceTraverser.java
Outdated
Show resolved
Hide resolved
hugegraph-api/src/main/java/org/apache/hugegraph/api/traversers/EdgeExistenceAPI.java
Outdated
Show resolved
Hide resolved
hugegraph-api/src/main/java/org/apache/hugegraph/api/traversers/EdgeExistenceAPI.java
Outdated
Show resolved
Hide resolved
hugegraph-api/src/main/java/org/apache/hugegraph/api/traversers/EdgeExistenceAPI.java
Outdated
Show resolved
Hide resolved
...raph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/EdgeExistenceTraverser.java
Outdated
Show resolved
Hide resolved
...raph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/EdgeExistenceTraverser.java
Outdated
Show resolved
Hide resolved
...raph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/EdgeExistenceTraverser.java
Outdated
Show resolved
Hide resolved
modify pom description as well
This reverts commit 3b791ee.
hugegraph-api/src/main/java/org/apache/hugegraph/api/traversers/EdgeExistenceAPI.java
Outdated
Show resolved
Hide resolved
...raph-core/src/main/java/org/apache/hugegraph/traversal/algorithm/EdgeExistenceTraverser.java
Show resolved
Hide resolved
Ok, it's done. Currently, the client CI tests are showing 404. |
hugegraph-api/src/main/java/org/apache/hugegraph/api/traversers/EdgeExistenceAPI.java
Outdated
Show resolved
Hide resolved
|
TODO: update apiversion like #2360 (comment) |
|
please pull the latest master code and do |
ab4ea2c to
89b34b3
Compare
Purpose of the PR
Main Changes
I have added the EdgeExistenceAPI and EdgeExistenceTraverser, which provide enhanced queries for checking the existence of adjacency edges.
Verifying these changes
graph:

GET http://{ip:port}/graphs/{graph}/traversers/edgeexistence?source=2:lop&target=1:vadas&edgelabel=knows

GET http://{ip:port}/graphs/{graph}/traversers/edgeexistence?source=1:marko&target=1:vadas

GET http://{ip:port}/graphs/{graph}/traversers/edgeexistence?source=1:marko

GET http://{ip:port}/graphs/{graph}/traversers/edgeexistence?source=2:lop&target=1:vadas&edgelabel=knows

GET http://{ip:port}/{graph}/traversers/edgeexistence?target=1:vadas&source=1:marko&limit=0

Does this PR potentially affect the following parts?
Documentation Status
Doc - TODODoc - DoneDoc - No Need