Skip to main content

OptimizationPass

Trait OptimizationPass 

Source
pub trait OptimizationPass: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn apply(&self, query: QueryExpr) -> QueryExpr;
    fn benefit(&self) -> u32;
}
Expand description

An optimization pass that transforms query expressions

Required Methods§

Source

fn name(&self) -> &str

Pass name for debugging

Source

fn apply(&self, query: QueryExpr) -> QueryExpr

Apply the optimization pass

Source

fn benefit(&self) -> u32

Estimated benefit (higher = more important)

Implementors§