Decodes a single byte from each row, interpreting `0x01` as a valid value and all other values as a null Returns the null count and null buffer
(rows: &[&[u8]])
| 418 | /// |
| 419 | /// Returns the null count and null buffer |
| 420 | pub fn decode_nulls(rows: &[&[u8]]) -> (usize, Buffer) { |
| 421 | let mut null_count = 0; |
| 422 | let buffer = MutableBuffer::collect_bool(rows.len(), |idx| { |
| 423 | let valid = rows[idx][0] == 1; |
| 424 | null_count += !valid as usize; |
| 425 | valid |
| 426 | }) |
| 427 | .into(); |
| 428 | (null_count, buffer) |
| 429 | } |
| 430 | |
| 431 | /// Decodes a `ArrayData` from rows based on the provided `FixedLengthEncoding` `T` |
| 432 | /// |
no test coverage detected