MCPcopy Create free account
hub / github.com/apache/paimon-rust / build_serialized

Method build_serialized

crates/paimon/src/spec/binary_row.rs:558–563  ·  view source on GitHub ↗

Build as Paimon's serialized format: 4-byte BE arity prefix + raw data.

(self)

Source from the content-addressed store, hash-verified

556
557 /// Build as Paimon's serialized format: 4-byte BE arity prefix + raw data.
558 pub fn build_serialized(self) -> Vec<u8> {
559 let mut serialized = Vec::with_capacity(4 + self.data.len());
560 serialized.extend_from_slice(&self.arity.to_be_bytes());
561 serialized.extend_from_slice(&self.data);
562 serialized
563 }
564
565 /// Write a Datum value at the given position, dispatching by type.
566 pub fn write_datum(&mut self, pos: usize, datum: &Datum, data_type: &DataType) {

Callers 12

from_predicateMethod · 0.80
test_from_partition_setFunction · 0.80
int_stats_rowFunction · 0.80
partition_bytesFunction · 0.80
null_partition_bytesFunction · 0.80
binary_row.rsFile · 0.80
datums_to_binary_rowFunction · 0.80
compute_column_statsFunction · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected