Get the current length of the validity vector in a DecodedColumn.
(result: &DecodedColumn)
| 123 | |
| 124 | /// Get the current length of the validity vector in a DecodedColumn. |
| 125 | pub(super) fn result_valid_len(result: &DecodedColumn) -> usize { |
| 126 | match result { |
| 127 | DecodedColumn::Int64 { valid, .. } |
| 128 | | DecodedColumn::Float64 { valid, .. } |
| 129 | | DecodedColumn::Timestamp { valid, .. } |
| 130 | | DecodedColumn::Bool { valid, .. } |
| 131 | | DecodedColumn::Binary { valid, .. } |
| 132 | | DecodedColumn::DictEncoded { valid, .. } => valid.len(), |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | /// Get a mutable slice of the validity vector starting from `offset`. |
| 137 | pub(super) fn result_valid_slice_mut(result: &mut DecodedColumn, offset: usize) -> &mut [bool] { |