Skip to main content

StreamVec

Type Alias StreamVec 

Source
pub type StreamVec<'scope, T, D> = Stream<'scope, T, Vec<D>>;
Expand description

A stream batching data in owning vectors.

Aliased Type§

pub struct StreamVec<'scope, T, D> { /* private fields */ }

Trait Implementations§

Source§

impl<T: Timestamp, D: ExchangeData + Clone> Broadcast<D> for StreamVec<'_, T, D>

Source§

fn broadcast(self) -> Self

Broadcast records to all workers. Read more
Source§

impl<T: Timestamp, D: 'static> Filter<D> for StreamVec<'_, T, D>

Source§

fn filter<P: FnMut(&D) -> bool + 'static>(self, predicate: P) -> Self

Returns a new instance of self containing only records satisfying predicate. Read more
Source§

impl<'scope, T: Timestamp, D: 'static> Map<'scope, T, D> for StreamVec<'scope, T, D>

Source§

fn map_in_place<L: FnMut(&mut D) + 'static>( self, logic: L, ) -> StreamVec<'scope, T, D>

Updates each element of the stream and yields the element, re-using memory where possible. Read more
Source§

fn flat_map<I: IntoIterator, L: FnMut(D) -> I + 'static>( self, logic: L, ) -> StreamVec<'scope, T, I::Item>
where I::Item: 'static,

Consumes each element of the stream and yields some number of new elements. Read more
Source§

fn map<D2: 'static, L: FnMut(D) -> D2 + 'static>( self, logic: L, ) -> StreamVec<'scope, T, D2>

Consumes each element of the stream and yields a new element. Read more
Source§

impl<'scope, T: Timestamp, D: 'static> Partition<'scope, T, D> for StreamVec<'scope, T, D>

Source§

fn partition<D2: 'static, F: Fn(D) -> (u64, D2) + 'static>( self, parts: u64, route: F, ) -> Vec<StreamVec<'scope, T, D2>> ⓘ

Produces parts output streams, containing records produced and assigned by route. Read more