pub struct QueryCeiling {
pub applied: usize,
pub offset: usize,
pub source: CeilingSource,
pub kind: CeilingKind,
pub universe_total: Option<usize>,
}Expand description
The ceiling one query applied, as the command that applied it saw it.
Fields§
§applied: usizeRows the query was allowed to return.
offset: usizeRows the query skipped before returning any.
A non-zero offset means the page is a recorte even when applied alone
would have covered the universe.
source: CeilingSourceWhether the caller chose the value or a constant did.
kind: CeilingKindWhether the ceiling pages a universe or bounds a ranking.
universe_total: Option<usize>Size of the universe, when the command can count it.
None is not “unbounded”: it means the command has no universe to
compare against, which is exactly why CeilingKind::TopK is never
refused.
Implementations§
Source§impl QueryCeiling
impl QueryCeiling
Sourcepub fn truncated_the_universe(&self) -> bool
pub fn truncated_the_universe(&self) -> bool
true when the ceiling actually kept rows out of the envelope.
A --limit wider than the corpus cut nothing, so a predicate over the
result observed the whole universe and there is nothing to refuse. This
is what keeps list --limit 100000 --filter … working.
Trait Implementations§
Source§impl Clone for QueryCeiling
impl Clone for QueryCeiling
Source§fn clone(&self) -> QueryCeiling
fn clone(&self) -> QueryCeiling
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for QueryCeiling
Auto Trait Implementations§
impl Freeze for QueryCeiling
impl RefUnwindSafe for QueryCeiling
impl Send for QueryCeiling
impl Sync for QueryCeiling
impl Unpin for QueryCeiling
impl UnsafeUnpin for QueryCeiling
impl UnwindSafe for QueryCeiling
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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