Skip to main content

ExecutionQueryBlock

Struct ExecutionQueryBlock 

Source
pub struct ExecutionQueryBlock<'a>(/* private fields */);

Implementations§

Source§

impl<'a> ExecutionQueryBlock<'a>

Source

pub fn borrowed(block: &'a QueryBlockPlan) -> Self

Source

pub fn bind_grouping_names( self, routines: &dyn RoutineResolution, schema: &RowSchema, outer: Option<&RowSchema>, params: &[SQLParam], control: &ProductionControl<'_>, ) -> Result<Self, SQLError>

Source

pub fn resolve_outer_rewrites( self, schema: &RowSchema, control: &ProductionControl<'_>, ) -> Result<Self, SQLError>

Methods from Deref<Target = QueryBlockPlan>§

Source

pub fn clone_with_control( &self, control: &ProductionControl<'_>, ) -> Result<Produced<Self>, SQLError>

Retain an immutable physical recheck input under the invoking request’s allowance.

Source

pub fn copy_for_rewrite( &self, control: &ProductionControl<'_>, ) -> Result<MutableQueryPlan, SQLError>

Construct an independent mutable query root from a retained block, admitting every scalar and structural destination before copying. The enclosing query has no CTE or relation flags until its caller installs the root in its original scope.

Source

pub fn compute_kind(&self, aggregates: &dyn AggregateClassifier) -> ComputePlan

Select the computation before output-demand rewrites remove unobserved aggregate values.

Source

pub fn compute_kind_with_control( &self, aggregates: &dyn AggregateClassifier, control: &ProductionControl<'_>, ) -> Result<ComputePlan, SQLError>

Source

pub fn is_single_expression(&self) -> bool

One scalar SELECT with no relational clauses or subplans. The caller must also reject set-returning routines using its selected catalog.

Source

pub fn expressions(&self) -> Vec<&ScalarExpr>

Expression nodes evaluated while executing this query block. Query bodies under FROM (SELECT ...) are excluded because their child plan installs its own expression scope when it executes.

Source

pub fn visit_expressions<'a>(&'a self, visit: &mut dyn FnMut(&'a ScalarExpr))

Borrow direct source roots followed by this query’s own roots. Derived-query bodies and scalar-query arenas keep their separate namespaces.

Source

pub fn try_visit_expressions<'a, E>( &'a self, visit: &mut dyn FnMut(&'a ScalarExpr) -> Result<bool, E>, ) -> Result<bool, E>

Visit direct expression roots in initialization order. Return false when the callback stops successfully; an error also stops before the next root.

Source

pub fn query_expressions(&self) -> impl Iterator<Item = &ScalarExpr>

Expressions at this query level, excluding FROM-item inputs and join conditions, which have their own namespaces.

Trait Implementations§

Source§

impl AsRef<QueryBlockPlan> for ExecutionQueryBlock<'_>

Source§

fn as_ref(&self) -> &QueryBlockPlan

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Deref for ExecutionQueryBlock<'_>

Source§

type Target = QueryBlockPlan

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.

Auto Trait Implementations§

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<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> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.