(self)
| 55 | } |
| 56 | |
| 57 | pub fn flush(self) -> Result<(), BufIoError> { |
| 58 | let cursor = self.bufman.open_cursor()?; |
| 59 | self.bufman |
| 60 | .update_u32_with_cursor(cursor, self.records_upserted)?; |
| 61 | self.bufman |
| 62 | .update_u32_with_cursor(cursor, self.records_deleted)?; |
| 63 | self.bufman |
| 64 | .update_u32_with_cursor(cursor, self.total_operations)?; |
| 65 | self.bufman.close_cursor(cursor)?; |
| 66 | self.bufman.flush() |
| 67 | } |
| 68 | |
| 69 | pub fn append(&mut self, op: VectorOp) -> Result<(), BufIoError> { |
| 70 | let mut buf = Vec::new(); |