Build as Paimon's serialized format: 4-byte BE arity prefix + raw data.
(self)
| 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) { |
no test coverage detected