Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Comments

fix iterators may not be closed#43

Merged
zhoney merged 6 commits intomasterfrom
fix-iter-close
Jan 8, 2020
Merged

fix iterators may not be closed#43
zhoney merged 6 commits intomasterfrom
fix-iter-close

Conversation

@javeme
Copy link
Contributor

@javeme javeme commented Dec 26, 2019

Change-Id: I3709d96fd2114fa782d6f28f8853b32d65fbd22b

@codecov
Copy link

codecov bot commented Dec 29, 2019

Codecov Report

Merging #43 into master will increase coverage by 0.45%.
The diff coverage is 83.15%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #43      +/-   ##
============================================
+ Coverage     80.72%   81.17%   +0.45%     
- Complexity      620      650      +30     
============================================
  Files            55       56       +1     
  Lines          1914     1981      +67     
  Branches        281      291      +10     
============================================
+ Hits           1545     1608      +63     
+ Misses          253      249       -4     
- Partials        116      124       +8
Impacted Files Coverage Δ Complexity Δ
...a/com/baidu/hugegraph/iterator/MapperIterator.java 86.66% <ø> (ø) 6 <0> (ø) ⬇️
...ava/com/baidu/hugegraph/version/CommonVersion.java 50% <ø> (ø) 1 <0> (ø) ⬇️
...u/hugegraph/iterator/FlatMapperFilterIterator.java 78.57% <100%> (ø) 5 <3> (ø) ⬇️
...m/baidu/hugegraph/iterator/ExtendableIterator.java 81.57% <100%> (+0.18%) 15 <0> (-1) ⬇️
.../com/baidu/hugegraph/iterator/WrappedIterator.java 79.41% <66.66%> (-2.74%) 13 <2> (+2)
.../baidu/hugegraph/iterator/BatchMapperIterator.java 80% <80%> (ø) 16 <16> (?)
...ava/com/baidu/hugegraph/iterator/ListIterator.java 81.48% <81.48%> (ø) 10 <10> (?)
...m/baidu/hugegraph/iterator/FlatMapperIterator.java 85.71% <94.11%> (+4.23%) 14 <11> (+3) ⬆️
.../main/java/com/baidu/hugegraph/perf/Stopwatch.java 85.71% <0%> (-2.05%) 20% <0%> (-1%)
... and 2 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 24b8a33...e206849. Read the comment docs.

javeme added 5 commits January 1, 2020 01:18
Change-Id: I3709d96fd2114fa782d6f28f8853b32d65fbd22b
Change-Id: If59870fb4f281f40af5bfbe3858c443108d4180e
Change-Id: I1add942c011cfc1b6faf998d94901fc2d8723169
Change-Id: I3ed1e3431f3d9b4ba6f66479fd557808c4c28ddc
Change-Id: I12698bc3aa17b8b9cd71fe6646a483a1c3dedbc9
// Call next() without hasNext()
Assert.assertEquals(1, results.next());

results = new BatchMapperIterator<>(1, DATA3.iterator(), MAPPER);
Copy link
Contributor

Choose a reason for hiding this comment

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

add a test with batch size 2

}

@Test
public void testMapperTHenReturn2X() {
Copy link
Contributor

Choose a reason for hiding this comment

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

THen -> Then

return false;
}

protected final void resetResults() {
Copy link
Contributor

Choose a reason for hiding this comment

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

resetBatchIterator

return false;
}

protected final void resetResults() {
Copy link
Contributor

Choose a reason for hiding this comment

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

resetBatchIterator

Change-Id: I5c6fe38612ead857ab25d8ebabf2f9775b4ac3da
@zhoney zhoney merged commit 4bd64ce into master Jan 8, 2020
@zhoney zhoney deleted the fix-iter-close branch January 8, 2020 07:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants