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

Function decode_arrow_ipc

nodedb/src/control/arrow_convert.rs:237–242  ·  view source on GitHub ↗

Decode Arrow IPC stream bytes back into a RecordBatch. Used by the Control Plane to receive Arrow data from the Data Plane across the SPSC bridge.

(bytes: &[u8])

Source from the content-addressed store, hash-verified

235/// Used by the Control Plane to receive Arrow data from the Data Plane
236/// across the SPSC bridge.
237pub fn decode_arrow_ipc(bytes: &[u8]) -> Option<RecordBatch> {
238 use arrow::ipc::reader::StreamReader;
239 let cursor = std::io::Cursor::new(bytes);
240 let mut reader = StreamReader::try_new(cursor, None).ok()?;
241 reader.next()?.ok()
242}
243
244#[cfg(test)]
245mod tests {

Callers

nothing calls this directly

Calls 2

okMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected