risingwave_common::field_generator

Trait NumericFieldSequenceGenerator

source
pub trait NumericFieldSequenceGenerator {
    // Required methods
    fn new(
        start: Option<String>,
        end: Option<String>,
        offset: u64,
        step: u64,
        event_offset: u64,
    ) -> Result<Self>
       where Self: Sized;
    fn generate(&mut self) -> Value;
    fn generate_datum(&mut self) -> Datum;
}
Expand description

fields that can be continuously generated impl this trait

Required Methods§

source

fn new( start: Option<String>, end: Option<String>, offset: u64, step: u64, event_offset: u64, ) -> Result<Self>
where Self: Sized,

source

fn generate(&mut self) -> Value

source

fn generate_datum(&mut self) -> Datum

Implementors§