(
array: &GenericByteArray<T>,
)
| 242 | } |
| 243 | |
| 244 | fn pack_values_impl<K: ArrowDictionaryKeyType, T: ByteArrayType>( |
| 245 | array: &GenericByteArray<T>, |
| 246 | ) -> Result<ArrayRef> { |
| 247 | let mut builder = GenericByteDictionaryBuilder::<K, T>::with_capacity(array.len(), 1024, 1024); |
| 248 | for x in array { |
| 249 | match x { |
| 250 | Some(x) => builder.append_value(x), |
| 251 | None => builder.append_null(), |
| 252 | } |
| 253 | } |
| 254 | let raw = builder.finish(); |
| 255 | Ok(Arc::new(raw)) |
| 256 | } |
| 257 | |
| 258 | fn pack_fixed_values_impl<K: ArrowDictionaryKeyType>( |
| 259 | array: &FixedSizeBinaryArray, |
nothing calls this directly
no test coverage detected