Skip to content

Commit

Permalink
Implement the run bitmap intersect_with operation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Sep 12, 2020
1 parent 9af4366 commit 9612ae9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/bitmap/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,13 +545,17 @@ impl Store {
}

*intervals1 = merged;
},
}
(this @ &mut Run(..), &Array(..)) => {
let mut new = other.clone();
new.intersect_with(this);
*this = new;
},
(&mut Run(ref mut _intervals), _store @ &Bitmap(..)) => unimplemented!(),
}
(this @ &mut Run(..), &Bitmap(..)) => {
let mut new = other.clone();
new.intersect_with(this);
*this = new;
}
}
}

Expand Down

0 comments on commit 9612ae9

Please sign in to comment.