pub struct PlanContext<'a> { /* private fields */ }Expand description
Context handed to a compiled planner. Planners run once per table before any row is generated, so they see the whole table and the run seed.
This type is the stable extension point for planner setup; row-count resolution, parent/child fan-out, and spooling are coordinated around it.
Implementations§
Source§impl<'a> PlanContext<'a>
impl<'a> PlanContext<'a>
Sourcepub fn new(table: &'a PortableTable, seed: SeedRoot) -> Self
pub fn new(table: &'a PortableTable, seed: SeedRoot) -> Self
Build a planning context for table under the run’s seed.
Sourcepub fn table(&self) -> &'a PortableTable
pub fn table(&self) -> &'a PortableTable
The table being planned.
Sourcepub fn rng(&self, id: StreamId) -> ChaCha8Rng
pub fn rng(&self, id: StreamId) -> ChaCha8Rng
Derive the deterministic RNG stream for the given identity.
Trait Implementations§
Source§impl<'a> Clone for PlanContext<'a>
impl<'a> Clone for PlanContext<'a>
Source§fn clone(&self) -> PlanContext<'a>
fn clone(&self) -> PlanContext<'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 moreimpl<'a> Copy for PlanContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for PlanContext<'a>
impl<'a> RefUnwindSafe for PlanContext<'a>
impl<'a> Send for PlanContext<'a>
impl<'a> Sync for PlanContext<'a>
impl<'a> Unpin for PlanContext<'a>
impl<'a> UnsafeUnpin for PlanContext<'a>
impl<'a> UnwindSafe for PlanContext<'a>
Blanket Implementations§
impl<T> Allocation for T
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