pub type Iterative<'a, G, T> = Child<'a, G, Product<<G as ScopeParent>::Timestamp, T>>;
Expand description
Type alias for iterative child scope.
Aliased Type§
struct Iterative<'a, G, T> {
pub subgraph: &'a RefCell<SubgraphBuilder<<G as ScopeParent>::Timestamp, Product<<G as ScopeParent>::Timestamp, T>>>,
pub parent: G,
pub logging: Option<TypedLogger<CapacityContainerBuilder<Vec<(Duration, TimelyEvent)>>, TimelyEvent>>,
pub progress_logging: Option<Logger<CapacityContainerBuilder<Vec<(Duration, TimelyProgressEvent<Product<<G as ScopeParent>::Timestamp, T>>)>>>>,
}
Fields§
§subgraph: &'a RefCell<SubgraphBuilder<<G as ScopeParent>::Timestamp, Product<<G as ScopeParent>::Timestamp, T>>>
The subgraph under assembly.
parent: G
A copy of the child’s parent scope.
logging: Option<TypedLogger<CapacityContainerBuilder<Vec<(Duration, TimelyEvent)>>, TimelyEvent>>
The log writer for this scope.
progress_logging: Option<Logger<CapacityContainerBuilder<Vec<(Duration, TimelyProgressEvent<Product<<G as ScopeParent>::Timestamp, T>>)>>>>
The progress log writer for this scope.
Implementations
Trait Implementations§
Source§impl<G, T> AsWorker for Child<'_, G, T>
impl<G, T> AsWorker for Child<'_, G, T>
Source§fn allocate<D: Exchangeable>(
&mut self,
identifier: usize,
address: Rc<[usize]>,
) -> (Vec<Box<dyn Push<D>>>, Box<dyn Pull<D>>)
fn allocate<D: Exchangeable>( &mut self, identifier: usize, address: Rc<[usize]>, ) -> (Vec<Box<dyn Push<D>>>, Box<dyn Pull<D>>)
Allocates a new channel from a supplied identifier and address. Read more
Source§fn pipeline<D: 'static>(
&mut self,
identifier: usize,
address: Rc<[usize]>,
) -> (ThreadPusher<D>, ThreadPuller<D>)
fn pipeline<D: 'static>( &mut self, identifier: usize, address: Rc<[usize]>, ) -> (ThreadPusher<D>, ThreadPuller<D>)
Constructs a pipeline channel from the worker to itself. Read more
Source§fn broadcast<D: Exchangeable + Clone>(
&mut self,
identifier: usize,
address: Rc<[usize]>,
) -> (Box<dyn Push<D>>, Box<dyn Pull<D>>)
fn broadcast<D: Exchangeable + Clone>( &mut self, identifier: usize, address: Rc<[usize]>, ) -> (Box<dyn Push<D>>, Box<dyn Pull<D>>)
Allocates a broadcast channel, where each pushed message is received by all.
Source§fn new_identifier(&mut self) -> usize
fn new_identifier(&mut self) -> usize
Allocates a new worker-unique identifier.
Source§fn peek_identifier(&self) -> usize
fn peek_identifier(&self) -> usize
The next worker-unique identifier to be allocated.
Source§fn log_register(&self) -> RefMut<'_, Registry>
fn log_register(&self) -> RefMut<'_, Registry>
Provides access to named logging streams.
Source§fn logging(&self) -> Option<TimelyLogger>
fn logging(&self) -> Option<TimelyLogger>
Provides access to the timely logging stream.
Source§impl<G, T> Scheduler for Child<'_, G, T>
impl<G, T> Scheduler for Child<'_, G, T>
Source§fn activations(&self) -> Rc<RefCell<Activations>>
fn activations(&self) -> Rc<RefCell<Activations>>
Provides a shared handle to the activation scheduler.
Source§fn activator_for(&self, path: Rc<[usize]>) -> Activator
fn activator_for(&self, path: Rc<[usize]>) -> Activator
Constructs an
Activator
tied to the specified operator address.Source§fn sync_activator_for(&self, path: Vec<usize>) -> SyncActivator
fn sync_activator_for(&self, path: Vec<usize>) -> SyncActivator
Constructs a
SyncActivator
tied to the specified operator address.Source§impl<G, T> Scope for Child<'_, G, T>
impl<G, T> Scope for Child<'_, G, T>
Source§fn addr(&self) -> Rc<[usize]>
fn addr(&self) -> Rc<[usize]>
A sequence of scope identifiers describing the path from the worker root to this scope.
Source§fn addr_for_child(&self, index: usize) -> Rc<[usize]>
fn addr_for_child(&self, index: usize) -> Rc<[usize]>
A sequence of scope identifiers describing the path from the worker root to the child
indicated by
index
.Source§fn add_edge(&self, source: Source, target: Target)
fn add_edge(&self, source: Source, target: Target)
Connects a source of data with a target of the data. This only links the two for
the purposes of tracking progress, rather than effect any data movement itself.
Source§fn add_operator_with_indices(
&mut self,
operator: Box<dyn Operate<Self::Timestamp>>,
local: usize,
global: usize,
)
fn add_operator_with_indices( &mut self, operator: Box<dyn Operate<Self::Timestamp>>, local: usize, global: usize, )
Adds a child
Operate
to the builder’s scope using supplied indices. Read moreSource§fn allocate_operator_index(&mut self) -> usize
fn allocate_operator_index(&mut self) -> usize
Allocates a new scope-local operator index. Read more
Source§fn scoped<T2, R, F>(&mut self, name: &str, func: F) -> R
fn scoped<T2, R, F>(&mut self, name: &str, func: F) -> R
Creates a dataflow subgraph. Read more
Source§fn add_operator(&mut self, operator: Box<dyn Operate<Self::Timestamp>>) -> usize
fn add_operator(&mut self, operator: Box<dyn Operate<Self::Timestamp>>) -> usize
Adds a child
Operate
to the builder’s scope. Returns the new child’s index.Source§fn add_operator_with_index(
&mut self,
operator: Box<dyn Operate<Self::Timestamp>>,
index: usize,
)
fn add_operator_with_index( &mut self, operator: Box<dyn Operate<Self::Timestamp>>, index: usize, )
Adds a child
Operate
to the builder’s scope using a supplied index. Read moreSource§fn iterative<T, R, F>(&mut self, func: F) -> R
fn iterative<T, R, F>(&mut self, func: F) -> R
Creates a iterative dataflow subgraph. Read more
Source§fn region<R, F>(&mut self, func: F) -> R
fn region<R, F>(&mut self, func: F) -> R
Creates a dataflow region with the same timestamp. Read more
Source§fn region_named<R, F>(&mut self, name: &str, func: F) -> R
fn region_named<R, F>(&mut self, name: &str, func: F) -> R
Creates a dataflow region with the same timestamp. Read more