Insert an out-of-order row. Returns true if accepted, false if buffer full.
(&mut self, row: O3Row)
| 42 | |
| 43 | /// Insert an out-of-order row. Returns true if accepted, false if buffer full. |
| 44 | pub fn insert(&mut self, row: O3Row) -> bool { |
| 45 | if self.rows.len() >= self.max_rows { |
| 46 | return false; |
| 47 | } |
| 48 | self.sorted = false; |
| 49 | self.rows.push(row); |
| 50 | true |
| 51 | } |
| 52 | |
| 53 | /// Query: find all rows in this buffer that fall within a time range. |
| 54 | /// |