TakeKernel

Trait TakeKernel 

Source
pub trait TakeKernel: VTable {
    // Required method
    fn take(
        &self,
        array: &Self::Array,
        indices: &dyn Array,
    ) -> VortexResult<ArrayRef>;
}

Required Methods§

Source

fn take( &self, array: &Self::Array, indices: &dyn Array, ) -> VortexResult<ArrayRef>

Create a new array by taking the values from the array at the given indices.

§Panics

Using indices that are invalid for the given array will cause a panic.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl TakeKernel for BoolVTable

Source§

impl TakeKernel for ChunkedVTable

Source§

impl TakeKernel for ConstantVTable

Source§

impl TakeKernel for DecimalVTable

Source§

impl TakeKernel for ExtensionVTable

Source§

impl TakeKernel for FixedSizeListVTable

Take implementation for FixedSizeListArray.

Expands list indices into element indices and pushes them down to the child elements array.

Source§

impl TakeKernel for ListVTable

Source§

impl TakeKernel for NullVTable

Source§

impl TakeKernel for PrimitiveVTable

Source§

impl TakeKernel for StructVTable

Source§

impl TakeKernel for VarBinVTable

Source§

impl TakeKernel for VarBinViewVTable

Take involves creating a new array that references the old array, just with the given set of views.