pub struct RangeSource { /* private fields */ }Expand description
Generates a range source for parallel execution testing.
Produces integers from 0 to n-1 in a single column.
Implementations§
Trait Implementations§
Source§impl ParallelSource for RangeSource
impl ParallelSource for RangeSource
Source§fn total_rows(&self) -> Option<usize>
fn total_rows(&self) -> Option<usize>
Returns the total number of rows in this source, if known. Read more
Source§fn create_partition(&self, morsel: &Morsel) -> Box<dyn Source>
fn create_partition(&self, morsel: &Morsel) -> Box<dyn Source>
Creates a partition source for the given morsel. Read more
Source§fn num_columns(&self) -> usize
fn num_columns(&self) -> usize
Returns the number of columns in this source.
Source§fn is_partitionable(&self) -> bool
fn is_partitionable(&self) -> bool
Returns whether this source can be partitioned. Read more
Source§impl Source for RangeSource
impl Source for RangeSource
Auto Trait Implementations§
impl Freeze for RangeSource
impl RefUnwindSafe for RangeSource
impl Send for RangeSource
impl Sync for RangeSource
impl Unpin for RangeSource
impl UnwindSafe for RangeSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more