pub struct Blanas;
Expand description
Generator for the Blanas data set.
The Blanas data set is taken from the paper Blanas et al. “Design and evaluation of main memory hash join algorithms for multi-core CPUs” in SIGMOD 2011.
The paper uses 8-byte keys / 16-byte tuples.
Implementations
sourceimpl Blanas
impl Blanas
sourcepub fn primary_key_len() -> usize
pub fn primary_key_len() -> usize
Rows in the primary key relation.
sourcepub fn foreign_key_len() -> usize
pub fn foreign_key_len() -> usize
Rows in the foreign key relation.
sourcepub fn gen<T: Copy + Send + KeyAttribute + FromPrimitive>(
pk_attr: &mut [T],
fk_attr: &mut [T],
selectivity: Option<u32>
) -> Result<()>
pub fn gen<T: Copy + Send + KeyAttribute + FromPrimitive>(
pk_attr: &mut [T],
fk_attr: &mut [T],
selectivity: Option<u32>
) -> Result<()>
Generate the Blanas data set.
Requires a slice for the primary key attribute, and a slice for the foreign key attribute. Both slices must have the lengths specified by the primary_key_len() and foreign_key_len() functions.
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%.
Auto Trait Implementations
impl RefUnwindSafe for Blanas
impl Send for Blanas
impl Sync for Blanas
impl Unpin for Blanas
impl UnwindSafe for Blanas
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more