Skip to content

Commit

Permalink
Implement the bitmap run difference_with operation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Sep 13, 2020
1 parent eb8e555 commit d8e4923
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/bitmap/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -652,9 +652,11 @@ impl Store {
*index1 &= !*index2;
}
}
// TODO(jpg) difference_with bitmap, run
(ref mut _this @ &mut Bitmap(..), &Run(ref _intervals)) => unimplemented!(),

(ref mut this @ &mut Bitmap(..), &Run(ref intervals)) => {
for iv in intervals {
this.remove_range(iv.start as u32, iv.end as u32 + 1);
}
}
// TODO(jpg) difference_with run, *
(&mut Run(ref mut _intervals1), &Run(ref _intervals2)) => unimplemented!(),
(&mut Run(ref mut _intervals), &Array(ref _vec)) => unimplemented!(),
Expand Down

0 comments on commit d8e4923

Please sign in to comment.