- Notifications
You must be signed in to change notification settings - Fork 44
improve: refactor combiner #169
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
Conversation
a1ece64
to 37e28c4
Compare ...ter-api/src/main/java/com/baidu/hugegraph/computer/core/combiner/DoubleValueSumCombiner.java Outdated Show resolved Hide resolved
...uter-api/src/main/java/com/baidu/hugegraph/computer/core/combiner/FloatValueSumCombiner.java Outdated Show resolved Hide resolved
computer-api/src/main/java/com/baidu/hugegraph/computer/core/combiner/IntValueSumCombiner.java Outdated Show resolved Hide resolved
computer-api/src/main/java/com/baidu/hugegraph/computer/core/combiner/LongValueSumCombiner.java Outdated Show resolved Hide resolved
...api/src/main/java/com/baidu/hugegraph/computer/core/combiner/MergeNewPropertiesCombiner.java Show resolved Hide resolved
...api/src/main/java/com/baidu/hugegraph/computer/core/combiner/MergeOldPropertiesCombiner.java Show resolved Hide resolved
...pi/src/main/java/com/baidu/hugegraph/computer/core/combiner/OverwritePropertiesCombiner.java Outdated Show resolved Hide resolved
.../src/main/java/com/baidu/hugegraph/computer/core/receiver/edge/EdgeMessageRecvPartition.java Outdated Show resolved Hide resolved
Assert.assertEquals(properties2, properties); | ||
} | ||
//@Test | ||
//public void testCombineVertex() { |
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.
don't need to test?
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.
yes, OverwriteCombiner only can combine Value now.
...uter-test/src/main/java/com/baidu/hugegraph/computer/core/sort/sorter/SortLargeDataTest.java Outdated Show resolved Hide resolved
bdf8e8d
to c4ff2c1
Compare Codecov Report
@@ Coverage Diff @@ ## master #169 +/- ## ============================================ - Coverage 87.36% 87.33% -0.03% - Complexity 3000 3057 +57 ============================================ Files 314 324 +10 Lines 11261 11465 +204 Branches 977 995 +18 ============================================ + Hits 9838 10013 +175 - Misses 960 980 +20 - Partials 463 472 +9
Continue to review full report at Codecov.
|
bd0f67e
to 70ac440
Compare input1.seek(v1.offset()); | ||
input2.seek(v2.offset()); | ||
String label1 = StreamGraphInput.readLabel(input1); | ||
String label2 = StreamGraphInput.readLabel(input2); |
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 move label to property class?
writer.writeSubKv(out -> { | ||
this.writeId(out, edge.targetId()); | ||
}, out -> { | ||
this.writeLabel(out, edge.label()); |
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 to lose the label value?
Uh oh!
There was an error while loading. Please reload this page.