rotationalio / honu

Adaptive consistency replication with reinforcement learning for large scale globally distributed storage.
BSD 3-Clause "New" or "Revised" License
12 stars 2 forks source link

Adds Seek and Prev to Iterator interface #11

Closed bbengfort closed 2 years ago

bbengfort commented 2 years ago

Although primarily a leveldb iterator interface, having Prev in addition to Next is going to be a helpful utility if we can implement it with other engines. The larger requirement is Seek which is absolutely needed for pagination and other advanced iteration. These are primarily a passthrough for leveldb operations, but I've also added some tests for the empty iterator which is not a passthrough.

codecov[bot] commented 2 years ago

Codecov Report

Merging #11 (31a6db3) into main (f871cd3) will increase coverage by 2.11%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
+ Coverage   44.10%   46.22%   +2.11%     
==========================================
  Files           6        7       +1     
  Lines         331      344      +13     
==========================================
+ Hits          146      159      +13     
  Misses        155      155              
  Partials       30       30              
Impacted Files Coverage Δ
iterator/empty.go 100.00% <100.00%> (ø)

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 f871cd3...31a6db3. Read the comment docs.