pub struct LimitOptions {
pub limit: usize,
pub descending: Option<bool>,
}Expand description
Configuration for limit-based optimizations in aggregation
Fields§
§limit: usizeThe maximum number of rows to return
descending: Option<bool>Optional ordering direction (true = descending, false = ascending) This is used for TopK aggregation to maintain a priority queue with the correct ordering
Implementations§
Source§impl LimitOptions
impl LimitOptions
Sourcepub fn new(limit: usize) -> Self
pub fn new(limit: usize) -> Self
Create a new LimitOptions with a limit and no specific ordering
Sourcepub fn new_with_order(limit: usize, descending: bool) -> Self
pub fn new_with_order(limit: usize, descending: bool) -> Self
Create a new LimitOptions with a limit and ordering direction
pub fn limit(&self) -> usize
pub fn descending(&self) -> Option<bool>
Trait Implementations§
Source§impl Clone for LimitOptions
impl Clone for LimitOptions
Source§fn clone(&self) -> LimitOptions
fn clone(&self) -> LimitOptions
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 Debug for LimitOptions
impl Debug for LimitOptions
Source§impl PartialEq for LimitOptions
impl PartialEq for LimitOptions
impl Copy for LimitOptions
impl Eq for LimitOptions
impl StructuralPartialEq for LimitOptions
Auto Trait Implementations§
impl Freeze for LimitOptions
impl RefUnwindSafe for LimitOptions
impl Send for LimitOptions
impl Sync for LimitOptions
impl Unpin for LimitOptions
impl UnsafeUnpin for LimitOptions
impl UnwindSafe for LimitOptions
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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