pub struct WANDStats {
pub scored: u64,
pub total_candidates: u64,
pub cursor_advances: u64,
}Expand description
Stats collected during a top-k pass; tests use these to assert the exit-criterion skip rates from the master plan.
Skip rate semantics are 1 - scored / total_candidates. The materialized
path reports the exact union of posting-list document ids. The score-cursor
path deliberately avoids a complete pre-scan and reports the sum of term
document frequencies, a safe upper bound on that union. scored counts
documents for which the complete query score was evaluated;
cursor_advances counts pivot-driven skips and is informational only.
Fields§
§scored: u64§total_candidates: u64§cursor_advances: u64Implementations§
Trait Implementations§
impl Copy for WANDStats
impl StructuralPartialEq for WANDStats
Auto Trait Implementations§
impl Freeze for WANDStats
impl RefUnwindSafe for WANDStats
impl Send for WANDStats
impl Sync for WANDStats
impl Unpin for WANDStats
impl UnsafeUnpin for WANDStats
impl UnwindSafe for WANDStats
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