pub(crate) unsafe fn take_no_null_bool_iter_unchecked<I: IntoIterator<Item = usize>>(
    arr: &BooleanArray,
    indices: I,
) -> Arc<BooleanArray> {
    debug_assert_eq!(arr.null_count(), 0);
    let iter = indices
        .into_iter()
        .map(|idx| Some(arr.values().get_bit_unchecked(idx)));

    Arc::new(BooleanArray::from_trusted_len_iter_unchecked(iter))
}
/// Take kernel for single chunk without nulls and an iterator as index.
///
/// # Safety
/// - no bounds checks
/// - iterator must be TrustedLen
Take kernel for single chunk without nulls and an iterator as index.
Take kernel for single chunk without nulls and an iterator as index .
pub(crate) unsafe fn take_no_null_bool_iter_unchecked<I: IntoIterator<Item = usize>>(
    arr: &BooleanArray,
    indices: I,
) -> Arc<BooleanArray> {
    debug_assert_eq!(arr.null_count(), 0);
    let iter = indices
        .into_iter()
        .map(|idx| Some(arr.values().get_bit_unchecked(idx)));
    Arc::new(BooleanArray::from_trusted_len_iter_unchecked(iter))
}
pub ( crate ) unsafe fn take_no_null_bool_iter_unchecked < I : IntoIterator < Item = usize > > ( arr : & BooleanArray , indices : I , ) -> Arc < BooleanArray > { debug_assert_eq ! ( arr null_count ( ) 0 ) ; let iter = indices . into_iter ( ) . map ( | idx | Some ( arr . values ( ) . get_bit_unchecked ( idx ) ) ) ; Arc :: new ( BooleanArray :: from_trusted_len_iter_unchecked ( iter ) ) }
Take kernel for single chunk without nulls and an iterator as index.
Take kernel for single chunk without nulls and an iterator as index .
arr
&BooleanArray
indices
I
arr
&BooleanArray
indices
I
safety
no bounds checks
iterator must be TrustedLen
no bounds checks iterator must be TrustedLen