(
array: &FixedSizeBinaryArray,
)
| 256 | } |
| 257 | |
| 258 | fn pack_fixed_values_impl<K: ArrowDictionaryKeyType>( |
| 259 | array: &FixedSizeBinaryArray, |
| 260 | ) -> Result<ArrayRef> { |
| 261 | let mut builder = FixedSizeBinaryDictionaryBuilder::<K>::with_capacity( |
| 262 | array.len(), |
| 263 | 1024, |
| 264 | array.value_length(), |
| 265 | ); |
| 266 | for x in array { |
| 267 | match x { |
| 268 | Some(x) => builder.append_value(x), |
| 269 | None => builder.append_null(), |
| 270 | } |
| 271 | } |
| 272 | let raw = builder.finish(); |
| 273 | Ok(Arc::new(raw)) |
| 274 | } |
| 275 | |
| 276 | #[cfg(test)] |
| 277 | mod tests { |
nothing calls this directly
no test coverage detected