pub enum ExecutionPlan {
TripleScan {
pattern: TriplePattern,
},
HashJoin {
left: Box<ExecutionPlan>,
right: Box<ExecutionPlan>,
join_vars: Vec<Variable>,
},
Filter {
input: Box<ExecutionPlan>,
condition: Expression,
},
Project {
input: Box<ExecutionPlan>,
vars: Vec<Variable>,
},
Sort {
input: Box<ExecutionPlan>,
order_by: Vec<OrderExpression>,
},
Limit {
input: Box<ExecutionPlan>,
limit: usize,
offset: usize,
},
Union {
left: Box<ExecutionPlan>,
right: Box<ExecutionPlan>,
},
Distinct {
input: Box<ExecutionPlan>,
},
}Expand description
A query execution plan
Variants§
TripleScan
Scan all triples matching a pattern
Fields
§
pattern: TriplePatternHashJoin
Join two sub-plans
Filter
Filter results
Project
Project specific variables
Sort
Sort results
Limit
Limit results
Union
Union of two plans
Distinct
Distinct results
Fields
§
input: Box<ExecutionPlan>Trait Implementations§
Source§impl Clone for ExecutionPlan
impl Clone for ExecutionPlan
Source§fn clone(&self) -> ExecutionPlan
fn clone(&self) -> ExecutionPlan
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExecutionPlan
impl RefUnwindSafe for ExecutionPlan
impl Send for ExecutionPlan
impl Sync for ExecutionPlan
impl Unpin for ExecutionPlan
impl UnsafeUnpin for ExecutionPlan
impl UnwindSafe for ExecutionPlan
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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