From e0c85c3fe99fc51e71d451174d718b4ada5804a3 Mon Sep 17 00:00:00 2001 From: zhangyi51 Date: Tue, 22 Dec 2020 17:53:05 +0800 Subject: [PATCH] fix personal/neighbor rank id from String to Object Change-Id: I2a0e42d199b3858facc900dbb745b8a5f2ef37da --- .../com/baidu/hugegraph/api/traversers/NeighborRankAPI.java | 2 +- .../com/baidu/hugegraph/api/traversers/PersonalRankAPI.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hugegraph-api/src/main/java/com/baidu/hugegraph/api/traversers/NeighborRankAPI.java b/hugegraph-api/src/main/java/com/baidu/hugegraph/api/traversers/NeighborRankAPI.java index 3ad6bc58f1..198e13f28b 100644 --- a/hugegraph-api/src/main/java/com/baidu/hugegraph/api/traversers/NeighborRankAPI.java +++ b/hugegraph-api/src/main/java/com/baidu/hugegraph/api/traversers/NeighborRankAPI.java @@ -101,7 +101,7 @@ private static List steps(HugeGraph graph, private static class RankRequest { @JsonProperty("source") - private String source; + private Object source; @JsonProperty("steps") private List steps; @JsonProperty("alpha") diff --git a/hugegraph-api/src/main/java/com/baidu/hugegraph/api/traversers/PersonalRankAPI.java b/hugegraph-api/src/main/java/com/baidu/hugegraph/api/traversers/PersonalRankAPI.java index f715055683..60d2386e57 100644 --- a/hugegraph-api/src/main/java/com/baidu/hugegraph/api/traversers/PersonalRankAPI.java +++ b/hugegraph-api/src/main/java/com/baidu/hugegraph/api/traversers/PersonalRankAPI.java @@ -101,7 +101,7 @@ public String personalRank(@Context GraphManager manager, private static class RankRequest { @JsonProperty("source") - private String source; + private Object source; @JsonProperty("label") private String label; @JsonProperty("alpha")