Struct partiql_eval::eval::EvalPlan
source · pub struct EvalPlan { /* private fields */ }Expand description
Represents a PartiQL evaluation query plan which is a plan that can be evaluated to produce
a result. The plan uses a directed petgraph::StableGraph.
Implementations§
source§impl EvalPlan
impl EvalPlan
sourcepub fn new(
mode: EvaluationMode,
plan_graph: StableGraph<Box<dyn Evaluable>, u8, Directed>
) -> Self
pub fn new( mode: EvaluationMode, plan_graph: StableGraph<Box<dyn Evaluable>, u8, Directed> ) -> Self
Creates a new evaluation plan.
sourcepub fn execute_mut<'c>(
&mut self,
ctx: &'c dyn EvalContext<'c>
) -> Result<Evaluated, EvalErr>
pub fn execute_mut<'c>( &mut self, ctx: &'c dyn EvalContext<'c> ) -> Result<Evaluated, EvalErr>
Executes the plan while mutating its state by changing the inputs and outputs of plan operators.
pub fn to_dot_graph(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EvalPlan
impl !RefUnwindSafe for EvalPlan
impl !Send for EvalPlan
impl !Sync for EvalPlan
impl Unpin for EvalPlan
impl !UnwindSafe for EvalPlan
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