timely::dataflow::operators::generic::builder_raw

Struct OperatorBuilder

Source
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, I>( &mut self, stream: &StreamCore<G, C>, pact: P, connection: I, ) -> 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, I>( &mut self, connection: I, ) -> (Tee<G::Timestamp, C>, StreamCore<G, C>)
where I: IntoIterator<Item = (usize, Antichain<<G::Timestamp as Timestamp>::Summary>)>,

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>,

Source§

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>,

Source§

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.