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_nans(self, nans: &[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_nans(self, nans: &[bool]) -> Box<dyn ArrayGenerator>
fn with_nans(self, nans: &[bool]) -> Box<dyn ArrayGenerator>
Replaces the values of generated arrays with NaN values, cycling if needed
Will have no effect if the data type is not a floating point data type
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