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

add subgraphpaths restful api #43

Closed
wants to merge 1 commit into from
Closed

add subgraphpaths restful api #43

wants to merge 1 commit into from

Conversation

zhoney
Copy link
Contributor

@zhoney zhoney commented Aug 31, 2018

fix #39

Change-Id: I41f82b73cee0ce657b3bcaaf1a68cf3479788fbf

fix #39

Change-Id: I41f82b73cee0ce657b3bcaaf1a68cf3479788fbf
import com.baidu.hugegraph.util.Log;
import com.codahale.metrics.annotation.Timed;

@Path("graphs/{graph}/traversers/subgraphpaths")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loop_path

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));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leaf_path

MultivaluedMap paths = traverser.subGraphPaths(source, dir, edgeLabel,
depth, degree, capacity,
limit);
return manager.serializer(g).writeSubGraphPaths(paths, false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefer return a list of path

@zhoney zhoney closed this Sep 5, 2018
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
修复  PD /v1/partitions 接口返回数据partitionid全部为0
VGalaxies pushed a commit that referenced this pull request Aug 3, 2024
Change-Id: I3709d96fd2114fa782d6f28f8853b32d65fbd22b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hugegraph在进行出度遍历时存在性能问题
2 participants