Skip to main content

TakeReduce

Trait TakeReduce 

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

Required Methods§

Source

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

Take elements from an array at the given indices without reading buffers.

This trait is for take implementations that can operate purely on array metadata and structure without needing to read or execute on the underlying buffers. Implementations should return None if taking requires buffer access.

§Preconditions

The indices are guaranteed to be non-empty.

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§