pub enum Provenance {
Sketched,
UpperBound,
Exact,
}Expand description
How a figure was produced, ordered by trust: a larger variant is more
trustworthy, so a planner level can ask provenance >= UpperBound
without matching.
Variants§
Sketched
A sketch: the distinct count is an estimate and the heavy-hitter counts are upper bounds.
UpperBound
Read off a declared index or a built equality pair: the postings are a superset of the live values (superseded versions stay until the next prune), so counts are upper bounds.
Exact
Reserved: no producer yet. The equality-pair bridge that reads a
built pair with no write since its build will produce it. A
declared index’s answer is Provenance::UpperBound, since its
postings keep superseded versions until the next prune.
Implementations§
Trait Implementations§
Source§impl Clone for Provenance
impl Clone for Provenance
impl Copy for Provenance
Source§impl Debug for Provenance
impl Debug for Provenance
impl Eq for Provenance
Source§impl Ord for Provenance
impl Ord for Provenance
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Provenance
impl PartialEq for Provenance
Source§impl PartialOrd for Provenance
impl PartialOrd for Provenance
impl StructuralPartialEq for Provenance
Auto Trait Implementations§
impl Forget for Provenance
impl Freeze for Provenance
impl Move for Provenance
impl RefUnwindSafe for Provenance
impl Send for Provenance
impl Sync for Provenance
impl Unpin for Provenance
impl UnsafeUnpin for Provenance
impl UnwindSafe for Provenance
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.