pub struct OperatorBuilder<G: Scope> { /* private fields */ }
Expand description
Builds operators with generic shape.
Implementations§
Source§impl<G: Scope> OperatorBuilder<G>
impl<G: Scope> OperatorBuilder<G>
Sourcepub fn new(name: String, scope: G) -> Self
pub fn new(name: String, scope: G) -> Self
Allocates a new generic operator builder from its containing scope.
Sourcepub fn shape(&self) -> &OperatorShape
pub fn shape(&self) -> &OperatorShape
Return a reference to the operator’s shape
Sourcepub fn set_notify(&mut self, notify: bool)
pub fn set_notify(&mut self, notify: bool)
Indicates whether the operator requires frontier information.
Sourcepub fn new_input<D: Container, P>(
&mut self,
stream: &StreamCore<G, D>,
pact: P,
) -> P::Pullerwhere
P: ParallelizationContractCore<G::Timestamp, D>,
pub fn new_input<D: Container, P>(
&mut self,
stream: &StreamCore<G, D>,
pact: P,
) -> P::Pullerwhere
P: ParallelizationContractCore<G::Timestamp, D>,
Adds a new input to a generic operator builder, returning the Pull
implementor to use.
Sourcepub fn new_input_connection<D: Container, P>(
&mut self,
stream: &StreamCore<G, D>,
pact: P,
connection: Vec<Antichain<<G::Timestamp as Timestamp>::Summary>>,
) -> P::Pullerwhere
P: ParallelizationContractCore<G::Timestamp, D>,
pub fn new_input_connection<D: Container, P>(
&mut self,
stream: &StreamCore<G, D>,
pact: P,
connection: Vec<Antichain<<G::Timestamp as Timestamp>::Summary>>,
) -> P::Pullerwhere
P: ParallelizationContractCore<G::Timestamp, D>,
Adds a new input to a generic operator builder, returning the Pull
implementor to use.
Sourcepub fn new_output<D: Container>(
&mut self,
) -> (TeeCore<G::Timestamp, D>, StreamCore<G, D>)
pub fn new_output<D: Container>( &mut self, ) -> (TeeCore<G::Timestamp, D>, StreamCore<G, D>)
Adds a new output to a generic operator builder, returning the Push
implementor to use.
Sourcepub fn new_output_connection<D: Container>(
&mut self,
connection: Vec<Antichain<<G::Timestamp as Timestamp>::Summary>>,
) -> (TeeCore<G::Timestamp, D>, StreamCore<G, D>)
pub fn new_output_connection<D: Container>( &mut self, connection: Vec<Antichain<<G::Timestamp as Timestamp>::Summary>>, ) -> (TeeCore<G::Timestamp, D>, StreamCore<G, D>)
Adds a new output to a generic operator builder, returning the Push
implementor to use.
Sourcepub fn build<L>(self, logic: L)
pub fn build<L>(self, logic: L)
Creates an operator implementation from supplied logic constructor.
Sourcepub fn operator_info(&self) -> OperatorInfo
pub fn operator_info(&self) -> OperatorInfo
Information describing the operator.
Trait Implementations§
Auto Trait Implementations§
impl<G> Freeze for OperatorBuilder<G>where
G: Freeze,
impl<G> RefUnwindSafe for OperatorBuilder<G>
impl<G> Send for OperatorBuilder<G>
impl<G> Sync for OperatorBuilder<G>
impl<G> Unpin for OperatorBuilder<G>
impl<G> UnwindSafe for OperatorBuilder<G>
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