pub struct Kim;
Expand description
Generator for the Kim data set.
The Kim data set is taken from the paper Kim et al. “Sort vs. hash revisited: Fast join implementation on modern multi-core CPUs” in PVLDB 2009.
The paper uses 4-byte keys / 8-byte tuples.
Implementations
sourceimpl Kim
impl Kim
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 Kim 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 Kim
impl Send for Kim
impl Sync for Kim
impl Unpin for Kim
impl UnwindSafe for Kim
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