pub trait ArrayGeneratorExt {
// Required methods
fn with_random_nulls(self, null_probability: f64) -> Box<dyn ArrayGenerator>;
fn with_nulls(self, nulls: &[bool]) -> Box<dyn ArrayGenerator>;
fn with_validity(self, nulls: &[bool]) -> Box<dyn ArrayGenerator>;
fn with_metadata(
self,
metadata: HashMap<String, String>,
) -> Box<dyn ArrayGenerator>;
}
Required Methods§
Sourcefn with_random_nulls(self, null_probability: f64) -> Box<dyn ArrayGenerator>
fn with_random_nulls(self, null_probability: f64) -> Box<dyn ArrayGenerator>
Replaces the validity bitmap of generated arrays, inserting nulls with a given probability
Sourcefn with_nulls(self, nulls: &[bool]) -> Box<dyn ArrayGenerator>
fn with_nulls(self, nulls: &[bool]) -> Box<dyn ArrayGenerator>
Replaces the validity bitmap of generated arrays with the inverse of nulls
, cycling if needed
Sourcefn with_validity(self, nulls: &[bool]) -> Box<dyn ArrayGenerator>
fn with_validity(self, nulls: &[bool]) -> Box<dyn ArrayGenerator>
Replaces the validity bitmap of generated arrays with validity
, cycling if needed