MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / push_raw

Method push_raw

nodedb/src/engine/array/memtable/tile_buffer.rs:76–86  ·  view source on GitHub ↗

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,
    )

Source from the content-addressed store, hash-verified

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<()> {

Callers 1

put_cellMethod · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected