pub(crate) struct RowBudget {
offset: Option<usize>,
limit: Option<usize>,
}Expand description
Running offset/limit budget shared across row groups.
Fields§
§offset: Option<usize>§limit: Option<usize>Implementations§
Source§impl RowBudget
impl RowBudget
pub(crate) fn new(offset: Option<usize>, limit: Option<usize>) -> Self
pub(crate) fn is_exhausted(self) -> bool
Sourcepub(crate) fn rows_after(self, rows_before_budget: usize) -> usize
pub(crate) fn rows_after(self, rows_before_budget: usize) -> usize
Returns how many selected rows remain after applying this budget.
Sourcefn selected_row_limit(self) -> Option<usize>
fn selected_row_limit(self) -> Option<usize>
Returns the number of selected rows needed before applying the offset.
fn apply_to_plan( self, plan_builder: ReadPlanBuilder, row_count: usize, ) -> BudgetedReadPlan
Trait Implementations§
impl Copy for RowBudget
impl Eq for RowBudget
impl StructuralPartialEq for RowBudget
Auto Trait Implementations§
impl Freeze for RowBudget
impl RefUnwindSafe for RowBudget
impl Send for RowBudget
impl Sync for RowBudget
impl Unpin for RowBudget
impl UnsafeUnpin for RowBudget
impl UnwindSafe for RowBudget
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.