Trait mz_storage_types::sources::load_generator::Generator

source ·
pub trait Generator {
    // Required method
    fn by_seed(
        &self,
        now: NowFn,
        seed: Option<u64>,
        resume_offset: MzOffset,
    ) -> Box<dyn Iterator<Item = (LoadGeneratorOutput, Event<Option<MzOffset>, (Row, i64)>)>>;
}

Required Methods§

source

fn by_seed( &self, now: NowFn, seed: Option<u64>, resume_offset: MzOffset, ) -> Box<dyn Iterator<Item = (LoadGeneratorOutput, Event<Option<MzOffset>, (Row, i64)>)>>

Returns a function that produces rows and batch information.

Implementors§