[][src]Struct transform::Optimizer

pub struct Optimizer {
    pub transforms: Vec<Box<dyn Transform + Send>>,

A naive optimizer for relation expressions.

The optimizer currently applies only peep-hole optimizations, from a limited set that were sufficient to get some of TPC-H up and working. It is worth a review at some point to improve the quality, coverage, and architecture of the optimizations.


transforms: Vec<Box<dyn Transform + Send>>

The list of transforms to apply to an input relation.


impl Optimizer[src]

pub fn optimize(
    &mut self,
    relation: RelationExpr,
    indexes: &HashMap<GlobalId, Vec<(GlobalId, Vec<ScalarExpr>)>>
) -> Result<OptimizedRelationExpr, TransformError>

Optimizes the supplied relation expression.

pub fn pre_optimization() -> Self[src]

Simple fusion and elision transformations to render the query readable.

Trait Implementations

impl Debug for Optimizer[src]

impl Default for Optimizer[src]

Auto Trait Implementations

impl !RefUnwindSafe for Optimizer

impl Send for Optimizer

impl !Sync for Optimizer

impl Unpin for Optimizer

impl !UnwindSafe for Optimizer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,