add subgraphpaths restful api#43
Closed
zhoney wants to merge 1 commit intoapache:masterfrom
zhoney:subgraph
Closed
add subgraphpaths restful api#43zhoney wants to merge 1 commit intoapache:masterfrom zhoney:subgraph
zhoney wants to merge 1 commit intoapache:masterfrom
zhoney:subgraph
Conversation
fix #39 Change-Id: I41f82b73cee0ce657b3bcaaf1a68cf3479788fbf
Closed
javeme
requested changes
Aug 31, 2018
hugegraph-api/src/main/java/com/baidu/hugegraph/serializer/JsonSerializer.java
Show resolved
Hide resolved
hugegraph-core/src/main/java/com/baidu/hugegraph/traversal/optimize/HugeTraverser.java
Show resolved
Hide resolved
javeme
requested changes
Sep 5, 2018
| import com.baidu.hugegraph.util.Log; | ||
| import com.codahale.metrics.annotation.Timed; | ||
|
|
||
| @Path("graphs/{graph}/traversers/subgraphpaths") |
Contributor
There was a problem hiding this comment.
prefer use "rays" as API name
| MultivaluedMap<Boolean, HugeTraverser.Path> paths, | ||
| boolean withCrossPoint) { | ||
| try (ByteArrayOutputStream out = new ByteArrayOutputStream(LBUF_SIZE)) { | ||
| out.write("{\"loop path\": ".getBytes(API.CHARSET)); |
| try (ByteArrayOutputStream out = new ByteArrayOutputStream(LBUF_SIZE)) { | ||
| out.write("{\"loop path\": ".getBytes(API.CHARSET)); | ||
| this.writePathsList(out, paths.get(true)); | ||
| out.write(",\"leaf path\": ".getBytes(API.CHARSET)); |
| MultivaluedMap paths = traverser.subGraphPaths(source, dir, edgeLabel, | ||
| depth, degree, capacity, | ||
| limit); | ||
| return manager.serializer(g).writeSubGraphPaths(paths, false); |
Contributor
There was a problem hiding this comment.
prefer return a list of path
zhoney
pushed a commit
to zhoney/hugegraph
that referenced
this pull request
Nov 9, 2021
* disable etcd for auth server (apache#42) * refine MetricsAPI test for prometheus exporter (apache#43) * upgrade hugegraph config and white api list (apache#44) * fixed computer-dis api bug (apache#45) * fix rest-server.properties config item k8s.hugegraph_url (apache#46) * fix rocksdb not close after close graph (apache#47)
zhoney
added a commit
to zhoney/hugegraph
that referenced
this pull request
Nov 9, 2021
* disable etcd for auth server (apache#42) * refine MetricsAPI test for prometheus exporter (apache#43) * upgrade hugegraph config and white api list (apache#44) * fix rest-server.properties config item k8s.hugegraph_url (apache#46) * fix rocksdb not close after close graph (apache#47) * support none auth mode for k8s api (apache#50) * feat(api): Support adamic-adar & resource-allocation algorithms (apache#10) (apache#51) * support graph reload and ingore single graph error when start server (apache#55) * support force delete task (apache#56) * update reload api (apache#57) * fix: check neighbors count & null label (apache#54) * fixed prometheus metrics bugs Co-authored-by: zhoney <[email protected]> Co-authored-by: sunwei31 <[email protected]> Co-authored-by: imbajin <[email protected]> Co-authored-by: guoyonggang <[email protected]>
imbajin
pushed a commit
that referenced
this pull request
Oct 19, 2022
Change-Id: I01e402fc99669f53544279c752f81d886c6ce28f
imbajin
pushed a commit
that referenced
this pull request
Nov 2, 2022
Change-Id: I01e402fc99669f53544279c752f81d886c6ce28f
imbajin
pushed a commit
that referenced
this pull request
Nov 7, 2022
Change-Id: I01e402fc99669f53544279c752f81d886c6ce28f
imbajin
pushed a commit
that referenced
this pull request
Nov 9, 2022
Change-Id: I01e402fc99669f53544279c752f81d886c6ce28f
JackyYangPassion
pushed a commit
to JackyYangPassion/hugegraph
that referenced
this pull request
Jul 29, 2024
VGalaxies
pushed a commit
that referenced
this pull request
Aug 3, 2024
Change-Id: I3709d96fd2114fa782d6f28f8853b32d65fbd22b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix #39
Change-Id: I41f82b73cee0ce657b3bcaaf1a68cf3479788fbf