pub struct CandidateStats {
pub units: usize,
pub fragments: usize,
pub distinct_fingerprints: usize,
pub stop_fingerprints: usize,
pub stop_postings: usize,
pub candidate_pairs: usize,
pub available_pairs: usize,
pub budget_exhausted: bool,
}Expand description
Counters describing what candidate generation saw and dropped: the head of
the detection funnel, recorded for the doctor/verbose view.
Fields§
§units: usizeUnits across all files.
fragments: usizeWindow and subtree occurrences indexed.
distinct_fingerprints: usizeDistinct feature hashes in the index.
stop_fingerprints: usizeDistinct hashes dropped for exceeding the posting cap.
stop_postings: usizeOccurrences dropped with them.
candidate_pairs: usizeCandidate pairs emitted.
available_pairs: usizePairs the eligible posting lists held in total.
Reported beside the emitted count so a truncated run says how much of its work it did. “The budget ran out” is compatible with having skipped one candidate and with having skipped nine in ten, and those are not the same result to hand someone.
budget_exhausted: boolWhether the pair budget ran out before all posting lists were paired.
Trait Implementations§
Source§impl Clone for CandidateStats
impl Clone for CandidateStats
Source§fn clone(&self) -> CandidateStats
fn clone(&self) -> CandidateStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CandidateStats
impl Debug for CandidateStats
Source§impl Default for CandidateStats
impl Default for CandidateStats
Source§fn default() -> CandidateStats
fn default() -> CandidateStats
Returns the “default value” for a type. Read more
impl Eq for CandidateStats
Source§impl PartialEq for CandidateStats
impl PartialEq for CandidateStats
impl StructuralPartialEq for CandidateStats
Auto Trait Implementations§
impl Freeze for CandidateStats
impl RefUnwindSafe for CandidateStats
impl Send for CandidateStats
impl Sync for CandidateStats
impl Unpin for CandidateStats
impl UnsafeUnpin for CandidateStats
impl UnwindSafe for CandidateStats
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§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.