Collect all non-null row ids into a bitmap.
(&self)
| 101 | |
| 102 | /// Collect all non-null row ids into a bitmap. |
| 103 | pub async fn all_non_null_rows(&self) -> io::Result<RoaringTreemap> { |
| 104 | if self.min_key.is_none() { |
| 105 | return Ok(RoaringTreemap::new()); |
| 106 | } |
| 107 | self.range_query( |
| 108 | self.min_key.as_deref().unwrap(), |
| 109 | self.max_key.as_deref().unwrap(), |
| 110 | true, |
| 111 | true, |
| 112 | ) |
| 113 | .await |
| 114 | } |
| 115 | |
| 116 | /// Range query: returns a bitmap of all row ids whose keys fall in [from, to] |
| 117 | /// with configurable inclusivity. Reads data blocks on demand. |