arrow_array::trusted_len

Function trusted_len_unzip

Source
pub(crate) unsafe fn trusted_len_unzip<I, P, T>(iterator: I) -> (Buffer, Buffer)
where T: ArrowNativeType, P: Borrow<Option<T>>, I: Iterator<Item = P>,
Expand description

Creates two [Buffer]s from an iterator of Option. The first buffer corresponds to a bitmap buffer, the second one corresponds to a values buffer.

ยงSafety

The caller must ensure that iterator is TrustedLen.