Insert or overwrite a cell version. `payload_bytes` must be the zerompk encoding of a [`CellPayload`].
(
&mut self,
coord: &Vec<CoordValue>,
payload_bytes: Vec<u8>,
lsn: u64,
)
| 74 | /// Insert or overwrite a cell version. `payload_bytes` must be the |
| 75 | /// zerompk encoding of a [`CellPayload`]. |
| 76 | pub fn push_raw( |
| 77 | &mut self, |
| 78 | coord: &Vec<CoordValue>, |
| 79 | payload_bytes: Vec<u8>, |
| 80 | lsn: u64, |
| 81 | ) -> ArrayResult<()> { |
| 82 | let key = Self::encode_coord(coord)?; |
| 83 | self.entries.insert(key, payload_bytes); |
| 84 | self.last_lsn = self.last_lsn.max(lsn); |
| 85 | Ok(()) |
| 86 | } |
| 87 | |
| 88 | /// Insert a tombstone sentinel for `coord` in this version. |
| 89 | pub fn push_tombstone(&mut self, coord: &Vec<CoordValue>, lsn: u64) -> ArrayResult<()> { |