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

Function encode_rows

nodedb-strict/src/arrow_extract.rs:391–394  ·  view source on GitHub ↗
(schema: &StrictSchema, rows: &[Vec<Value>])

Source from the content-addressed store, hash-verified

389 }
390
391 fn encode_rows(schema: &StrictSchema, rows: &[Vec<Value>]) -> Vec<Vec<u8>> {
392 let encoder = TupleEncoder::new(schema);
393 rows.iter().map(|r| encoder.encode(r).unwrap()).collect()
394 }
395
396 #[test]
397 fn extract_int64_column() {

Callers 4

extract_int64_columnFunction · 0.85
extract_string_columnFunction · 0.85

Calls 3

collectMethod · 0.80
iterMethod · 0.45
encodeMethod · 0.45

Tested by 4

extract_int64_columnFunction · 0.68
extract_string_columnFunction · 0.68