pub struct LimitCollector { /* private fields */ }Expand description
Collects first N rows across all partitions.
Stops collecting once the limit is reached (per partition).
Final merge ensures exactly limit rows are returned.
Implementations§
Trait Implementations§
Source§impl Clone for LimitCollector
impl Clone for LimitCollector
Source§fn clone(&self) -> LimitCollector
fn clone(&self) -> LimitCollector
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Collector for LimitCollector
impl Collector for LimitCollector
Source§type PartitionCollector = LimitPartitionCollector
type PartitionCollector = LimitPartitionCollector
Partition-local collector type.
Source§fn for_partition(&self, _partition_id: usize) -> Self::PartitionCollector
fn for_partition(&self, _partition_id: usize) -> Self::PartitionCollector
Creates a collector for a single partition (called per-thread).
Auto Trait Implementations§
impl Freeze for LimitCollector
impl RefUnwindSafe for LimitCollector
impl Send for LimitCollector
impl Sync for LimitCollector
impl Unpin for LimitCollector
impl UnsafeUnpin for LimitCollector
impl UnwindSafe for LimitCollector
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more