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

export new implemented oltp traversals #1289

Merged
merged 4 commits into from
Dec 9, 2020
Merged

export new implemented oltp traversals #1289

merged 4 commits into from
Dec 9, 2020

Conversation

zhoney
Copy link
Contributor

@zhoney zhoney commented Dec 7, 2020

Change-Id: I0e501dcffd7c38dbd6afe76e82000935160bee36

Change-Id: I0e501dcffd7c38dbd6afe76e82000935160bee36
Change-Id: I3b541099d0dbec6dc455f28324fb80229cdb45d6
Change-Id: I934670631e3b7969e7be975bef0fb5104d633965
@@ -20,15 +20,27 @@ scriptEngines: {
com.baidu.hugegraph.backend.id.IdGenerator,
com.baidu.hugegraph.type.define.Directions,
com.baidu.hugegraph.type.define.NodeRole,
com.baidu.hugegraph.traversal.algorithm.CustomizePathsTraverser,
com.baidu.hugegraph.traversal.algorithm.CollectionPathsTraverser,
Copy link
Contributor

Choose a reason for hiding this comment

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

export EdgeStep

Copy link
Contributor Author

Choose a reason for hiding this comment

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

already export

step.skipDegree,
step.maxTimes);
protected static RepeatEdgeStep repeatEdgeStep(
HugeGraph graph, TemplatePathsAPI.TemplatePathStep step) {
Copy link
Contributor

Choose a reason for hiding this comment

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

move to TemplatePathsAPI

this.count.add(edgesCount);
}

return this.count.longValue();
}

private Iterator<Edge> edgesOfVertex(Id source, Step step) {
private Iterator<Edge> edgesOfVertexWithDedup(Id source, EdgeStep step) {
Copy link
Contributor

Choose a reason for hiding this comment

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

edgesOfVertexWithCount

@codecov
Copy link

codecov bot commented Dec 9, 2020

Codecov Report

Merging #1289 (d81a5c6) into master (01d4849) will decrease coverage by 0.19%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1289      +/-   ##
============================================
- Coverage     62.29%   62.10%   -0.20%     
+ Complexity     5769     5768       -1     
============================================
  Files           374      377       +3     
  Lines         31392    31493     +101     
  Branches       4407     4413       +6     
============================================
+ Hits          19557    19558       +1     
- Misses         9845     9946     +101     
+ Partials       1990     1989       -1     
Impacted Files Coverage Δ Complexity Δ
...a/com/baidu/hugegraph/api/traversers/CountAPI.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...u/hugegraph/api/traversers/CustomizedPathsAPI.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...ugegraph/api/traversers/FusiformSimilarityAPI.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...hugegraph/api/traversers/JaccardSimilarityAPI.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...m/baidu/hugegraph/api/traversers/KneighborAPI.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...va/com/baidu/hugegraph/api/traversers/KoutAPI.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...graph/api/traversers/MultiNodeShortestPathAPI.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...a/com/baidu/hugegraph/api/traversers/PathsAPI.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...idu/hugegraph/api/traversers/TemplatePathsAPI.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...m/baidu/hugegraph/api/traversers/TraverserAPI.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
... and 10 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 01d4849...d81a5c6. Read the comment docs.

Change-Id: I5c16abb730a176c638bf842118a61d58c52fe80e
@javeme javeme merged commit f6f44bb into master Dec 9, 2020
@javeme javeme deleted the export-traversals branch December 9, 2020 11:54
tmljob pushed a commit to tmljob/hugegraph that referenced this pull request Dec 10, 2020
* export new implemented oltp traversals
* move EdgeStep, WeightedEdgeStep and RepeatEdgeStep to steps package

Change-Id: I0e501dcffd7c38dbd6afe76e82000935160bee36
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.

3 participants