-
Notifications
You must be signed in to change notification settings - Fork 94
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
feat: support edgeexistence api #539
Conversation
public List<Edge> edgeExistence(Object sourceId, Object targetId, String edgeLabel, | ||
String sortValues, long limit){ | ||
return this.edgeExistenceAPI.get(sourceId, targetId, edgeLabel, | ||
sortValues, limit); |
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.
seems one line is ok
Object lopId = getVertexId("software", "name", "lop"); | ||
|
||
edges = edgeExistenceAPI.get(lopId, vadasId, | ||
"knows", "", 100); |
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.
seems one line is ok
Object rippleId = getVertexId("person", "name", "ripple"); | ||
|
||
edges = edgeExistenceAPI.get(joshId, rippleId, | ||
"created", "", 100); |
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.
seems one line is ok
@@ -538,4 +541,10 @@ public Iterator<Edge> iteratorEdges(Shard shard, int sizePerPage) { | |||
return this.edges(shard, page, sizePerPage); | |||
}); | |||
} | |||
|
|||
public List<Edge> edgeExistence(Object sourceId, Object targetId, String edgeLabel, | |||
String sortValues, long limit){ |
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.
expect int limit
@@ -538,4 +541,10 @@ public Iterator<Edge> iteratorEdges(Shard shard, int sizePerPage) { | |||
return this.edges(shard, page, sizePerPage); | |||
}); | |||
} | |||
|
|||
public List<Edge> edgeExistence(Object sourceId, Object targetId, String edgeLabel, |
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.
also add this 2 versions:
edgeExistence(Object sourceId, Object targetId)
edgeExistence(Object sourceId, Object targetId, String edgeLabel)
Sorry, I'm currently using this branch for testing... PR in the wrong place. 😅 please ignore it. |
follow apache/incubator-hugegraph#2242