OptimizerRule

Trait OptimizerRule 

Source
pub trait OptimizerRule {
    // Required method
    fn optimize(&self, array: &ArrayRef) -> VortexResult<Option<ArrayRef>>;
}
Expand description

A generic optimizer rule that can be applied to an array to try to optimize it.

Required Methods§

Source

fn optimize(&self, array: &ArrayRef) -> VortexResult<Option<ArrayRef>>

Try to optimize the given array, returning a replacement if successful.

If no optimization is possible, return None.

Implementors§