ArrayBuiltins

Trait ArrayBuiltins 

Source
pub trait ArrayBuiltins: Sized {
    // Required methods
    fn cast(&self, dtype: DType) -> VortexResult<ArrayRef>;
    fn get_item(
        &self,
        field_name: impl Into<FieldName>,
    ) -> VortexResult<ArrayRef>;
    fn is_null(&self) -> VortexResult<ArrayRef>;
    fn mask(&self, mask: &ArrayRef) -> VortexResult<ArrayRef>;
    fn not(&self) -> VortexResult<ArrayRef>;
}

Required Methods§

Source

fn cast(&self, dtype: DType) -> VortexResult<ArrayRef>

Cast to the given data type.

Source

fn get_item(&self, field_name: impl Into<FieldName>) -> VortexResult<ArrayRef>

Get item by field name (for struct types).

Source

fn is_null(&self) -> VortexResult<ArrayRef>

Is null check.

Source

fn mask(&self, mask: &ArrayRef) -> VortexResult<ArrayRef>

Mask the array using the given boolean mask. The resulting array’s validity is the intersection of the original array’s validity and the mask’s validity.

Source

fn not(&self) -> VortexResult<ArrayRef>

Boolean negation.

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§