mz_storage_operators::oneshot_source

Function render_split_work

Source
pub fn render_split_work<G, S, F>(
    scope: G,
    collection_id: GlobalId,
    objects: &Stream<G, Result<(S::Object, S::Checksum), StorageErrorX>>,
    source: S,
    format: F,
) -> (Stream<G, Result<F::WorkRequest<S>, StorageErrorX>>, PressOnDropButton)
where G: Scope, S: OneshotSource + Send + Sync + 'static, F: OneshotFormat + Send + Sync + 'static,
Expand description

Render an operator that given a stream of OneshotSource::Objects will split them into units of work based on the provided OneshotFormat.