pub struct SetPlanRequest {
pub task_key: TaskKey,
pub task_count: usize,
pub plan_proto: Vec<u8>,
pub work_unit_feed_declarations: Vec<WorkUnitFeedDeclaration>,
pub target_worker_url: Url,
pub query_start_time_ns: usize,
}Fields§
§task_key: TaskKeyThe unique identifier of the task to which the subplan belongs to.
task_count: usizeThe amount of tasks that share the same subplan. Necessary for building the DistributedTaskContext during execution.
plan_proto: Vec<u8>The subplan the worker is expected to execute.
work_unit_feed_declarations: Vec<WorkUnitFeedDeclaration>Information about all the work unit feeds that will be streamed from coordinator to worker. This information is needed here because at the moment of setting the plan, all the appropriate channels for the incoming work unit feeds need to be constructed.
If no WorkUnitFeedExec nodes are present in the plan, this should be empty.
target_worker_url: UrlThe worker URL to which this message will go. The receiving worker will use this information to identify itself, and avoid further calls in case it needs to call itself for executing tasks.
query_start_time_ns: usizeUnix nanos when the query started as reported by the coordinator. Used for collecting temporal metrics relative to when the query was fired in the coordinator.
Auto Trait Implementations§
impl Freeze for SetPlanRequest
impl RefUnwindSafe for SetPlanRequest
impl Send for SetPlanRequest
impl Sync for SetPlanRequest
impl Unpin for SetPlanRequest
impl UnsafeUnpin for SetPlanRequest
impl UnwindSafe for SetPlanRequest
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
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> ⓘ
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> ⓘ
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>
T in a tonic::Request