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

Method get_raw

nodedb/src/engine/document/store/engine/get.rs:32–39  ·  view source on GitHub ↗

Get raw MessagePack bytes (zero-copy path for DataFusion UDFs).

(&self, collection: &str, doc_id: &str)

Source from the content-addressed store, hash-verified

30
31 /// Get raw MessagePack bytes (zero-copy path for DataFusion UDFs).
32 pub fn get_raw(&self, collection: &str, doc_id: &str) -> crate::Result<Option<Vec<u8>>> {
33 if self.is_bitemporal(collection) {
34 self.sparse
35 .versioned_get_current(self.tenant_id, collection, doc_id)
36 } else {
37 self.sparse.get(self.tenant_id, collection, doc_id)
38 }
39 }
40}

Callers 1

raw_msgpack_roundtripFunction · 0.45

Calls 3

versioned_get_currentMethod · 0.80
is_bitemporalMethod · 0.45
getMethod · 0.45

Tested by 1

raw_msgpack_roundtripFunction · 0.36