Skip to main content

BatcherNew

Trait BatcherNew 

Source
pub trait BatcherNew {
    // Required method
    fn new_batcher(logger: Option<Logger>, operator_id: usize) -> Self;
}
Expand description

A batcher that generic code can construct.

Batcher itself has no constructor, and differential’s operators take one as an FnOnce argument. Wrappers such as CollectionExt::consolidate_named and mz_arrange build their batcher through this trait, so their callers only name the type.

Required Methods§

Source

fn new_batcher(logger: Option<Logger>, operator_id: usize) -> Self

Allocates an empty batcher, reporting its footprint against operator_id.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<Chu: Default, M: Extractor, S> BatcherNew for MergeBatcher<Chu, M, S>

Source§

fn new_batcher(logger: Option<Logger>, operator_id: usize) -> Self

Implementors§