Skip to main content

ExecutionArgs

Trait ExecutionArgs 

Source
pub trait ExecutionArgs {
    // Required methods
    fn get(&self, index: usize) -> VortexResult<ArrayRef>;
    fn num_inputs(&self) -> usize;
    fn row_count(&self) -> usize;

    // Provided method
    fn input_matches(
        &self,
        index: usize,
        predicate: fn(&ArrayRef) -> bool,
    ) -> VortexResult<bool> { ... }
}
Expand description

Arguments for expression execution.

Required Methods§

Source

fn get(&self, index: usize) -> VortexResult<ArrayRef>

Returns the input array at the given index.

Source

fn num_inputs(&self) -> usize

Returns the number of inputs.

Source

fn row_count(&self) -> usize

Returns the row count of the execution scope.

Provided Methods§

Source

fn input_matches( &self, index: usize, predicate: fn(&ArrayRef) -> bool, ) -> VortexResult<bool>

Whether the input at the given index satisfies predicate.

Implementations that hold their inputs override this to test the input in place, without the clone get makes, since it runs on every scalar function execution step.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§