Apply the delete bitmap to a validity vector: set deleted rows to false. `global_offset` is the row index of the first element in `valid` (used when processing a block that starts at a non-zero row).
(&self, valid: &mut [bool], global_offset: u32)
| 91 | /// `global_offset` is the row index of the first element in `valid` |
| 92 | /// (used when processing a block that starts at a non-zero row). |
| 93 | pub fn apply_to_validity(&self, valid: &mut [bool], global_offset: u32) { |
| 94 | for (i, v) in valid.iter_mut().enumerate() { |
| 95 | if self.inner.contains(global_offset + i as u32) { |
| 96 | *v = false; |
| 97 | } |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | /// Serialize the bitmap to bytes for persistence. |
| 102 | pub fn to_bytes(&self) -> Result<Vec<u8>, ColumnarError> { |