pub struct UniformRelation;
Expand description

Generator for relations with uniform distribution.

Implementations

Generates a primary key attribute.

The generated keys are unique and contiguous. The key range starts from 0 and ends before, i.e. excluding, attr.len(). Keys are placed at random locations within the slice.

selectivity specifies the join selectivity in percent. An according percentage of keys are set to the NULL value. By default (None), the selectivity is 100%.

Generates a primary key attribute in parallel.

The generated keys are unique and contiguous. The key range starts from 0 and ends before, i.e. excluding, attr.len(). Keys are placed at random locations within the slice.

selectivity specifies the join selectivity in percent. An according percentage of keys are set to the NULL value. By default (None), the selectivity is 100%.

Generates a foreign key attribute based on a primary key attribute.

The generated keys are sampled from the primary key attribute, that is, they follow a foreign-key relationship. If the primary keys are unique, then the generated foreign keys follow a uniform distribution.

Generates a uniformly distributed attribute.

The generated values are sampled from range.

Generates a uniformly distributed attribute in parallel.

The generated values are sampled from range.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.