feat(code): add sst iterator / day 2

Signed-off-by: Alex Chi <iskyzh@gmail.com>
This commit is contained in:
Alex Chi
2022-12-23 21:14:11 -05:00
parent c09a54e796
commit 72cee6ac13
17 changed files with 483 additions and 29 deletions

View File

@@ -51,10 +51,6 @@ impl BlockIterator {
self.seek_to(0);
}
pub fn seek_to_last(&mut self) {
self.seek_to(self.block.offsets.len() - 1);
}
pub fn len(&self) -> usize {
self.block.offsets.len()
}
@@ -106,5 +102,6 @@ impl BlockIterator {
std::cmp::Ordering::Equal => return,
}
}
self.seek_to(low);
}
}