Get raw MessagePack bytes (zero-copy path for DataFusion UDFs).
(&self, collection: &str, doc_id: &str)
| 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 | } |