pub(super) fn take_value_indices_from_fixed_size_list(
    list: &FixedSizeListArray,
    indices: &PrimitiveArray<Int32Type>,
    length: <Int32Type as ArrowPrimitiveType>::Native,
) -> PrimitiveArray<Int32Type> {
    let mut values = vec![];

    for i in 0..indices.len() {
        if indices.is_valid(i) {
            let index = indices.value(i) as usize;
            let start = list.value_offset(index);

            values.extend(start..start + length);
        }
    }

    PrimitiveArray::<Int32Type>::from(values)
}
/// Takes/filters a fixed size list array's inner data using the offsets of the list array.
Takes/filters a fixed size list array's inner data using the offsets of the list array.
Takes / filters a fixed size list array ' s inner data using the offsets of the list array .
pub(super) fn take_value_indices_from_fixed_size_list(
    list: &FixedSizeListArray,
    indices: &PrimitiveArray<Int32Type>,
    length: <Int32Type as ArrowPrimitiveType>::Native,
) -> PrimitiveArray<Int32Type> {
    let mut values = vec![];
    for i in 0..indices.len() {
        if indices.is_valid(i) {
            let index = indices.value(i) as usize;
            let start = list.value_offset(index);
            values.extend(start..start + length);
        }
    }
    PrimitiveArray::<Int32Type>::from(values)
}
pub ( super ) fn take_value_indices_from_fixed_size_list ( list : & FixedSizeListArray , indices : & PrimitiveArray < Int32Type > , length : < Int32Type as ArrowPrimitiveType > :: Native , ) -> PrimitiveArray < Int32Type > { let mut values = vec ! [ ] ; for i in 0 .. indices . len ( ) { if indices . is_valid ( i ) { let index = indices . value ( i ) as usize ; let start = list . value_offset ( index ) ; values . extend ( start .. start + length ) ; } } PrimitiveArray :: < Int32Type > :: from ( values ) }
Takes/filters a fixed size list array's inner data using the offsets of the list array.
Takes / filters a fixed size list array ' s inner data using the offsets of the list array .
list
&FixedSizeListArray
indices
&PrimitiveArray<Int32Type>
length
<Int32Type as ArrowPrimitiveType>::Native
list
&FixedSizeListArray
indices
&PrimitiveArray<Int32Type>
length
<Int32Type as ArrowPrimitiveType>::Native