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§
Sourcefn get(&self, index: usize) -> VortexResult<ArrayRef>
fn get(&self, index: usize) -> VortexResult<ArrayRef>
Returns the input array at the given index.
Sourcefn num_inputs(&self) -> usize
fn num_inputs(&self) -> usize
Returns the number of inputs.
Provided Methods§
Sourcefn input_matches(
&self,
index: usize,
predicate: fn(&ArrayRef) -> bool,
) -> VortexResult<bool>
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".