Trait TakeFn

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

    // Provided method
    fn take_into(
        &self,
        array: A,
        indices: &dyn Array,
        builder: &mut dyn ArrayBuilder,
    ) -> VortexResult<()> { ... }
}

Required Methods§

Source

fn take(&self, array: A, 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.

Provided Methods§

Source

fn take_into( &self, array: A, indices: &dyn Array, builder: &mut dyn ArrayBuilder, ) -> VortexResult<()>

Has the same semantics as Self::take but materializes the result into the provided builder.

Implementors§