arrow_select::take

Function take_list

Source
fn take_list<IndexType, OffsetType>(
    values: &GenericListArray<OffsetType::Native>,
    indices: &PrimitiveArray<IndexType>,
) -> Result<GenericListArray<OffsetType::Native>, ArrowError>
where IndexType: ArrowPrimitiveType, OffsetType: ArrowPrimitiveType, OffsetType::Native: OffsetSizeTrait, PrimitiveArray<OffsetType>: From<Vec<OffsetType::Native>>,
Expand description

take implementation for list arrays

Calculates the index and indexed offset for the inner array, applying take on the inner array, then reconstructing a list array with the indexed offsets