Skip to content

Commit

Permalink
Implement the bitmap run intersect_with operation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Sep 12, 2020
1 parent 0a66483 commit 9af4366
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bitmap/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,10 @@ impl Store {
new.intersect_with(this);
*this = new;
}
// TODO(jpg) intersect_with bitmap, run
(_this @ &mut Bitmap(..), &Run(..)) => unimplemented!(),
(this @ &mut Bitmap(..), &Run(..)) => {
let other = other.to_bitmap();
this.intersect_with(&other);
}
(&mut Run(ref mut intervals1), &Run(ref intervals2)) => {
let mut merged = Vec::new();

Expand Down

0 comments on commit 9af4366

Please sign in to comment.