Skip to main content

ArrayFunctions

Trait ArrayFunctions 

Source
pub trait ArrayFunctions: Sized {
    // Required methods
    fn zip(
        &self,
        if_true: ArrayRef,
        if_false: ArrayRef,
    ) -> VortexResult<ArrayRef>;
    fn list_contains(&self, value: ArrayRef) -> VortexResult<ArrayRef>;
    fn is_null(&self) -> VortexResult<ArrayRef>;
    fn between(
        self,
        lower: ArrayRef,
        upper: ArrayRef,
        options: BetweenOptions,
    ) -> VortexResult<ArrayRef>;
}
Expand description

Builder methods on ArrayRef for this crate’s scalar functions.

Required Methods§

Source

fn zip(&self, if_true: ArrayRef, if_false: ArrayRef) -> VortexResult<ArrayRef>

Conditional selection: result[i] = if mask[i] then if_true[i] else if_false[i].

Source

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

Check if a list contains a value.

Source

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

Is null check.

Source

fn between( self, lower: ArrayRef, upper: ArrayRef, options: BetweenOptions, ) -> VortexResult<ArrayRef>

Compare a values between lower </<= value </<= upper

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ArrayFunctions for ArrayRef

Implementors§