Batch-compute serialized partition bytes for all rows. Returns one `Vec ` per row, identical to calling `BinaryRow::from_arrow(batch, row_idx, field_indices, fields).to_serialized_bytes()` for each row, but with O(F) column downcasts instead of O(N*F).
(
batch: &RecordBatch,
field_indices: &[usize],
fields: &[crate::spec::DataField],
)
| 1128 | /// `BinaryRow::from_arrow(batch, row_idx, field_indices, fields).to_serialized_bytes()` |
| 1129 | /// for each row, but with O(F) column downcasts instead of O(N*F). |
| 1130 | pub fn batch_to_serialized_bytes( |
| 1131 | batch: &RecordBatch, |
| 1132 | field_indices: &[usize], |
| 1133 | fields: &[crate::spec::DataField], |
| 1134 | ) -> crate::Result<Vec<Vec<u8>>> { |
| 1135 | let rows = batch_build_binary_rows(batch, field_indices, fields)?; |
| 1136 | Ok(rows.into_iter().map(|r| r.to_serialized_bytes()).collect()) |
| 1137 | } |
| 1138 | |
| 1139 | /// Batch-compute Murmur3 hash codes for all rows. |
| 1140 | /// Returns one `i32` per row, identical to calling |
no test coverage detected