pub struct Optimizer {
    pub name: &'static str,
    pub transforms: Vec<Box<dyn Transform>>,
}
Expand description

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.

Fields

name: &'static str

A logical name identifying this optimizer instance.

transforms: Vec<Box<dyn Transform>>

The list of transforms to apply to an input relation.

Implementations

Builds a logical optimizer that only performs logical transformations.

Builds a physical optimizer.

Performs logical transformations followed by all physical ones. This is meant to be used for optimizing each view within a dataflow once view inlining has already happened, right before dataflow rendering.

Contains the logical optimizations that should run after cross-view transformations run.

Optimizes the supplied relation expression.

These optimizations are performed with no information about available arrangements, which makes them suitable for pre-optimization before dataflow deployment.

Optimizes the supplied relation expression in place, using available arrangements.

This method should only be called with non-empty indexes when optimizing a dataflow, as the optimizations may lock in the use of arrangements that may cease to exist.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more