pub struct OperatorBuilder<G: Scope> { /* private fields */ }
Expand description

Builds operators with generic shape.

Implementations§

source§

impl<G: Scope> OperatorBuilder<G>

source

pub fn new(name: String, scope: G) -> Self

Allocates a new generic operator builder from its containing scope.

source

pub fn index(&self) -> usize

The operator’s scope-local index.

source

pub fn global(&self) -> usize

The operator’s worker-unique identifier.

source

pub fn shape(&self) -> &OperatorShape

Return a reference to the operator’s shape

source

pub fn set_notify(&mut self, notify: bool)

Indicates whether the operator requires frontier information.

source

pub fn new_input<C: Container, P>( &mut self, stream: &StreamCore<G, C>, pact: P, ) -> P::Puller

Adds a new input to a generic operator builder, returning the Pull implementor to use.

source

pub fn new_input_connection<C: Container, P>( &mut self, stream: &StreamCore<G, C>, pact: P, connection: Vec<Antichain<<G::Timestamp as Timestamp>::Summary>>, ) -> P::Puller

Adds a new input to a generic operator builder, returning the Pull implementor to use.

source

pub fn new_output<C: Container>( &mut self, ) -> (Tee<G::Timestamp, C>, StreamCore<G, C>)

Adds a new output to a generic operator builder, returning the Push implementor to use.

source

pub fn new_output_connection<C: Container>( &mut self, connection: Vec<Antichain<<G::Timestamp as Timestamp>::Summary>>, ) -> (Tee<G::Timestamp, C>, StreamCore<G, C>)

Adds a new output to a generic operator builder, returning the Push implementor to use.

source

pub fn build<L>(self, logic: L)
where L: FnMut(&mut SharedProgress<G::Timestamp>) -> bool + 'static,

Creates an operator implementation from supplied logic constructor.

source

pub fn operator_info(&self) -> OperatorInfo

Information describing the operator.

Trait Implementations§

source§

impl<G: Debug + Scope> Debug for OperatorBuilder<G>
where G::Timestamp: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CopyAs<T> for T

source§

fn copy_as(self) -> T

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.