risingwave_common::field_generator

Trait NumericFieldRandomGenerator

source
pub trait NumericFieldRandomGenerator {
    // Required methods
    fn new(min: Option<String>, max: Option<String>, seed: u64) -> Result<Self>
       where Self: Sized;
    fn generate(&mut self, offset: u64) -> Value;
    fn generate_datum(&mut self, offset: u64) -> Datum;
}
Expand description

fields that can be randomly generated impl this trait

Required Methods§

source

fn new(min: Option<String>, max: Option<String>, seed: u64) -> Result<Self>
where Self: Sized,

source

fn generate(&mut self, offset: u64) -> Value

source

fn generate_datum(&mut self, offset: u64) -> Datum

Implementors§