pub struct PhysicalPlanDecodeContext<'a> { /* private fields */ }Expand description
Context threaded through physical-plan deserialization.
This bundles the stable per-call inputs for deserialization and the
per-scope ScalarSubqueryResults handle needed while reconstructing
ScalarSubqueryExpr nodes inside a ScalarSubqueryExec input plan.
Implementations§
Source§impl<'a> PhysicalPlanDecodeContext<'a>
impl<'a> PhysicalPlanDecodeContext<'a>
Sourcepub fn new(
task_ctx: &'a TaskContext,
codec: &'a dyn PhysicalExtensionCodec,
) -> Self
pub fn new( task_ctx: &'a TaskContext, codec: &'a dyn PhysicalExtensionCodec, ) -> Self
Creates a new root decode context.
Sourcepub fn task_ctx(&self) -> &'a TaskContext
pub fn task_ctx(&self) -> &'a TaskContext
Returns the task context used for deserialization.
Sourcepub fn codec(&self) -> &'a dyn PhysicalExtensionCodec
pub fn codec(&self) -> &'a dyn PhysicalExtensionCodec
Returns the physical extension codec used for deserialization.
Sourcepub fn scalar_subquery_results(&self) -> Option<&ScalarSubqueryResults>
pub fn scalar_subquery_results(&self) -> Option<&ScalarSubqueryResults>
Returns the scalar subquery results container for the current scope, if one is active.
Sourcepub fn with_scalar_subquery_results(
&self,
scalar_subquery_results: ScalarSubqueryResults,
) -> Self
pub fn with_scalar_subquery_results( &self, scalar_subquery_results: ScalarSubqueryResults, ) -> Self
Returns a child context with a different scalar subquery results container.
Trait Implementations§
Source§impl<'a> Clone for PhysicalPlanDecodeContext<'a>
impl<'a> Clone for PhysicalPlanDecodeContext<'a>
Source§fn clone(&self) -> PhysicalPlanDecodeContext<'a>
fn clone(&self) -> PhysicalPlanDecodeContext<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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<'a> !RefUnwindSafe for PhysicalPlanDecodeContext<'a>
impl<'a> !UnwindSafe for PhysicalPlanDecodeContext<'a>
impl<'a> Freeze for PhysicalPlanDecodeContext<'a>
impl<'a> Send for PhysicalPlanDecodeContext<'a>
impl<'a> Sync for PhysicalPlanDecodeContext<'a>
impl<'a> Unpin for PhysicalPlanDecodeContext<'a>
impl<'a> UnsafeUnpin for PhysicalPlanDecodeContext<'a>
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> 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