pub struct ScaleUpLeafNodeEvent<'a> {
pub plan: &'a Arc<dyn ExecutionPlan>,
pub task_count: usize,
pub session_config: &'a SessionConfig,
}Expand description
Information supplied when a leaf has been assigned its final stage task count.
This event runs after desired task counts from all of the stage’s leaves have been reconciled,
so [Self::handle] is the count that the stage will actually use. A handler can use it to
replace a leaf with a task-specialized plan, such as a crate::DistributedLeafExec that
selects a different input for every task.
Fields§
§plan: &'a Arc<dyn ExecutionPlan>The leaf execution plan to replace, if this handler recognizes it.
task_count: usizeThe final number of tasks that will execute the leaf’s stage.
session_config: &'a SessionConfigThe session configuration that registered the event handlers and holds query options.
Trait Implementations§
Source§impl<'a> Clone for ScaleUpLeafNodeEvent<'a>
impl<'a> Clone for ScaleUpLeafNodeEvent<'a>
Source§fn clone(&self) -> ScaleUpLeafNodeEvent<'a>
fn clone(&self) -> ScaleUpLeafNodeEvent<'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 ScaleUpLeafNodeEvent<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ScaleUpLeafNodeEvent<'a>
impl<'a> !UnwindSafe for ScaleUpLeafNodeEvent<'a>
impl<'a> Freeze for ScaleUpLeafNodeEvent<'a>
impl<'a> Send for ScaleUpLeafNodeEvent<'a>
impl<'a> Sync for ScaleUpLeafNodeEvent<'a>
impl<'a> Unpin for ScaleUpLeafNodeEvent<'a>
impl<'a> UnsafeUnpin for ScaleUpLeafNodeEvent<'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> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request