Skip to main content

QueryPlan

Struct QueryPlan 

Source
pub struct QueryPlan {
    pub original: QueryExpr,
    pub optimized: QueryExpr,
    pub cost: PlanCost,
    pub passes_applied: Vec<String>,
}
Expand description

Query plan ready for execution

Fields§

§original: QueryExpr

Original query expression

§optimized: QueryExpr

Optimized query expression

§cost: PlanCost

Estimated cost

§passes_applied: Vec<String>

Optimization passes applied

Implementations§

Source§

impl QueryPlan

Source

pub fn new(original: QueryExpr, optimized: QueryExpr, cost: PlanCost) -> Self

Create a new query plan

Source

pub fn add_pass(&mut self, pass_name: &str)

Add an optimization pass record

Trait Implementations§

Source§

impl Clone for QueryPlan

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for QueryPlan

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for QueryPlan

§

impl Freeze for QueryPlan
where *const FunctionCommand is !null: Freeze, PhantomData<FunctionCommand>: Freeze, *const u8 is !null: Freeze, PhantomData<u8>: Freeze, *const QueryExpr is !null: Freeze, PhantomData<QueryExpr>: Freeze, PhantomData<String>: Freeze, PhantomData<(String, f64)>: Freeze, PhantomData<SelectItem>: Freeze, PhantomData<Projection>: Freeze, *const ArcInner<str> is !null: Freeze, PhantomData<ArcInner<str>>: Freeze, PhantomData<f32>: Freeze, PhantomData<Value>: Freeze, *const ArcInner<CronSchedule> is !null: Freeze, PhantomData<ArcInner<CronSchedule>>: Freeze, *const Expr is !null: Freeze, PhantomData<Expr>: Freeze, PhantomData<(Expr, Expr)>: Freeze, PhantomData<WindowOrderItem>: Freeze, *const Filter is !null: Freeze, PhantomData<Filter>: Freeze, PhantomData<OrderByClause>: Freeze, PhantomData<NodePattern>: Freeze, PhantomData<EdgePattern>: Freeze, PhantomData<MetadataValue>: Freeze, PhantomData<MetadataFilter>: Freeze, *const MetadataFilter is !null: Freeze, PhantomData<Vec<Expr>>: Freeze, PhantomData<Vec<Value>>: Freeze, PhantomData<(String, Expr)>: Freeze, PhantomData<ReturningItem>: Freeze, PhantomData<(String, Value)>: Freeze, PhantomData<Option<BinOp>>: Freeze, PhantomData<CreateColumnDef>: Freeze, PhantomData<CreateUniqueConstraint>: Freeze, PhantomData<SubscriptionDescriptor>: Freeze, PhantomData<AnalyticsViewDescriptor>: Freeze, PhantomData<[u8; 32]>: Freeze, PhantomData<AlterOperation>: Freeze, PhantomData<(f64, f64)>: Freeze, PhantomData<(String, String)>: Freeze, PhantomData<ForeignColumnDef>: Freeze, PhantomData<GrantObject>: Freeze, PhantomData<GrantPrincipalRef>: Freeze, PhantomData<AlterUserAttribute>: Freeze,

§

impl Move for QueryPlan

§

impl RefUnwindSafe for QueryPlan

§

impl Send for QueryPlan
where BoxRaw<FunctionCommand>: Send, RawVecInner: Send, BoxRaw<QueryExpr>: Send, Arc<str>: Send, Arc<CronSchedule>: Send, BoxRaw<Expr>: Send, BoxRaw<Filter>: Send, BoxRaw<WindowSpec>: Send, BoxRaw<MetadataFilter>: Send, BoxRaw<SqlTypeName>: Send, Arc<Expr>: Send, Arc<[String]>: Send,

§

impl Sync for QueryPlan
where BoxRaw<FunctionCommand>: Sync, RawVecInner: Sync, BoxRaw<QueryExpr>: Sync, Arc<str>: Sync, Arc<CronSchedule>: Sync, BoxRaw<Expr>: Sync, BoxRaw<Filter>: Sync, BoxRaw<WindowSpec>: Sync, BoxRaw<MetadataFilter>: Sync, BoxRaw<SqlTypeName>: Sync, Arc<Expr>: Sync, Arc<[String]>: Sync,

§

impl Unpin for QueryPlan

§

impl UnsafeUnpin for QueryPlan
where *const FunctionCommand is !null: UnsafeUnpin, PhantomData<FunctionCommand>: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, *const QueryExpr is !null: UnsafeUnpin, PhantomData<QueryExpr>: UnsafeUnpin, PhantomData<String>: UnsafeUnpin, PhantomData<(String, f64)>: UnsafeUnpin, PhantomData<SelectItem>: UnsafeUnpin, PhantomData<Projection>: UnsafeUnpin, *const ArcInner<str> is !null: UnsafeUnpin, PhantomData<ArcInner<str>>: UnsafeUnpin, PhantomData<f32>: UnsafeUnpin, PhantomData<Value>: UnsafeUnpin, *const ArcInner<CronSchedule> is !null: UnsafeUnpin, PhantomData<ArcInner<CronSchedule>>: UnsafeUnpin, *const Expr is !null: UnsafeUnpin, PhantomData<Expr>: UnsafeUnpin, PhantomData<(Expr, Expr)>: UnsafeUnpin, PhantomData<WindowOrderItem>: UnsafeUnpin, *const Filter is !null: UnsafeUnpin, PhantomData<Filter>: UnsafeUnpin, PhantomData<OrderByClause>: UnsafeUnpin, PhantomData<NodePattern>: UnsafeUnpin, PhantomData<EdgePattern>: UnsafeUnpin, PhantomData<MetadataValue>: UnsafeUnpin, PhantomData<MetadataFilter>: UnsafeUnpin, *const MetadataFilter is !null: UnsafeUnpin, PhantomData<Vec<Expr>>: UnsafeUnpin, PhantomData<Vec<Value>>: UnsafeUnpin, PhantomData<(String, Expr)>: UnsafeUnpin, PhantomData<ReturningItem>: UnsafeUnpin, PhantomData<(String, Value)>: UnsafeUnpin, PhantomData<Option<BinOp>>: UnsafeUnpin, PhantomData<CreateColumnDef>: UnsafeUnpin, PhantomData<CreateUniqueConstraint>: UnsafeUnpin, PhantomData<SubscriptionDescriptor>: UnsafeUnpin, PhantomData<AnalyticsViewDescriptor>: UnsafeUnpin, PhantomData<[u8; 32]>: UnsafeUnpin, PhantomData<AlterOperation>: UnsafeUnpin, PhantomData<(f64, f64)>: UnsafeUnpin, PhantomData<(String, String)>: UnsafeUnpin, PhantomData<ForeignColumnDef>: UnsafeUnpin, PhantomData<GrantObject>: UnsafeUnpin, PhantomData<GrantPrincipalRef>: UnsafeUnpin, PhantomData<AlterUserAttribute>: UnsafeUnpin,

§

impl UnwindSafe for QueryPlan

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

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

fn in_current_span(self) -> Instrumented<Self> ⓘ

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

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

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

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

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

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool