Query: find all rows in this buffer that fall within a time range. Returns rows matching the range, sorted by timestamp.
(&mut self, min_ts: i64, max_ts: i64)
| 54 | /// |
| 55 | /// Returns rows matching the range, sorted by timestamp. |
| 56 | pub fn query_range(&mut self, min_ts: i64, max_ts: i64) -> Vec<&O3Row> { |
| 57 | self.ensure_sorted(); |
| 58 | self.rows |
| 59 | .iter() |
| 60 | .filter(|r| r.timestamp_ms >= min_ts && r.timestamp_ms <= max_ts) |
| 61 | .collect() |
| 62 | } |
| 63 | |
| 64 | /// Drain all rows targeting a specific partition (for merge). |
| 65 | /// |