pub struct QueryPlan {
pub units: Vec<WorkUnit>,
pub dependency_graph: DependencyGraph,
pub total_cost: Option<f64>,
pub original_query: String,
pub metadata: PlanMetadata,
}
Expand description
Complete query execution plan
Fields§
§units: Vec<WorkUnit>
All work units in the plan
dependency_graph: DependencyGraph
Dependency graph for determining execution order
total_cost: Option<f64>
Estimated total cost
original_query: String
Original query for reference
metadata: PlanMetadata
Metadata about the plan
Implementations§
Source§impl QueryPlan
impl QueryPlan
Sourcepub fn get_execution_order(&self) -> Result<Vec<String>, String>
pub fn get_execution_order(&self) -> Result<Vec<String>, String>
Get execution order respecting dependencies
Sourcepub fn get_parallel_groups(&self) -> Vec<Vec<String>>
pub fn get_parallel_groups(&self) -> Vec<Vec<String>>
Get units that can be executed in parallel
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryPlan
impl RefUnwindSafe for QueryPlan
impl Send for QueryPlan
impl Sync for QueryPlan
impl Unpin for QueryPlan
impl UnwindSafe for QueryPlan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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