pub struct PartitionedStepNode { /* private fields */ }Expand description
A bounded local partition manager and its ordinary worker-step definition.
Implementations§
Source§impl PartitionedStepNode
impl PartitionedStepNode
Sourcepub fn new(
id: NodeId,
step_name: StepName,
worker: StepNode,
partitioner: ComponentRevision,
aggregation: ComponentRevision,
partitions: PartitionCount,
budget: PartitionBudget,
) -> Self
pub fn new( id: NodeId, step_name: StepName, worker: StepNode, partitioner: ComponentRevision, aggregation: ComponentRevision, partitions: PartitionCount, budget: PartitionBudget, ) -> Self
Declares the complete restart-relevant local partition shape.
Sourcepub const fn with_failure_policy(
self,
failure_policy: LocalFailurePolicy,
) -> Self
pub const fn with_failure_policy( self, failure_policy: LocalFailurePolicy, ) -> Self
Selects sibling failure behavior.
Sourcepub const fn with_start_controls(self, start: StartControls) -> Self
pub const fn with_start_controls(self, start: StartControls) -> Self
Declares the partition manager’s start controls.
Sourcepub const fn worker(&self) -> &StepNode
pub const fn worker(&self) -> &StepNode
Borrows the ordinary tasklet or chunk worker declaration.
Sourcepub const fn partitioner(&self) -> &ComponentRevision
pub const fn partitioner(&self) -> &ComponentRevision
Borrows the deterministic partitioner revision.
Sourcepub const fn aggregation(&self) -> &ComponentRevision
pub const fn aggregation(&self) -> &ComponentRevision
Borrows the deterministic aggregation revision.
Sourcepub const fn partition_count(&self) -> PartitionCount
pub const fn partition_count(&self) -> PartitionCount
Returns the finite partition count.
Sourcepub const fn budget(&self) -> PartitionBudget
pub const fn budget(&self) -> PartitionBudget
Returns the finite local resource budget.
Sourcepub const fn failure_policy(&self) -> LocalFailurePolicy
pub const fn failure_policy(&self) -> LocalFailurePolicy
Returns sibling failure behavior.
Sourcepub const fn start_controls(&self) -> StartControls
pub const fn start_controls(&self) -> StartControls
Returns the partition manager’s start controls.
Trait Implementations§
Source§impl Clone for PartitionedStepNode
impl Clone for PartitionedStepNode
Source§fn clone(&self) -> PartitionedStepNode
fn clone(&self) -> PartitionedStepNode
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 moreSource§impl Debug for PartitionedStepNode
impl Debug for PartitionedStepNode
impl Eq for PartitionedStepNode
Source§impl PartialEq for PartitionedStepNode
impl PartialEq for PartitionedStepNode
impl StructuralPartialEq for PartitionedStepNode
Auto Trait Implementations§
impl Freeze for PartitionedStepNode
impl RefUnwindSafe for PartitionedStepNode
impl Send for PartitionedStepNode
impl Sync for PartitionedStepNode
impl Unpin for PartitionedStepNode
impl UnsafeUnpin for PartitionedStepNode
impl UnwindSafe for PartitionedStepNode
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