pub struct FilterStats {
pub total_operations: u64,
pub index_filtered_out: u64,
pub bloom_filtered_out: u64,
pub precise_filtered_out: u64,
pub total_filter_time_us: u64,
pub index_filter_time_us: u64,
pub bloom_filter_time_us: u64,
pub precise_filter_time_us: u64,
}
Expand description
Statistics about filtering performance
Fields§
§total_operations: u64
Total number of filter operations performed
index_filtered_out: u64
Number of records eliminated by index pre-filtering
bloom_filtered_out: u64
Number of records eliminated by bloom filter checks
precise_filtered_out: u64
Number of records eliminated by precise filtering
total_filter_time_us: u64
Total time spent on filtering (in microseconds)
index_filter_time_us: u64
Time spent on index pre-filtering (in microseconds)
bloom_filter_time_us: u64
Time spent on bloom filter checks (in microseconds)
precise_filter_time_us: u64
Time spent on precise filtering (in microseconds)
Implementations§
Source§impl FilterStats
impl FilterStats
Sourcepub fn index_filter_efficiency(&self) -> f64
pub fn index_filter_efficiency(&self) -> f64
Calculate the efficiency of index pre-filtering
Sourcepub fn bloom_filter_efficiency(&self) -> f64
pub fn bloom_filter_efficiency(&self) -> f64
Calculate the efficiency of bloom filtering
Sourcepub fn overall_efficiency(&self) -> f64
pub fn overall_efficiency(&self) -> f64
Calculate the overall filtering efficiency
Sourcepub fn avg_filter_time_us(&self) -> f64
pub fn avg_filter_time_us(&self) -> f64
Get average time per filter operation (in microseconds)
Trait Implementations§
Source§impl Clone for FilterStats
impl Clone for FilterStats
Source§fn clone(&self) -> FilterStats
fn clone(&self) -> FilterStats
Returns a duplicate of the value. Read more
1.0.0 · 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 FilterStats
impl Debug for FilterStats
Source§impl Default for FilterStats
impl Default for FilterStats
Source§fn default() -> FilterStats
fn default() -> FilterStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FilterStats
impl RefUnwindSafe for FilterStats
impl Send for FilterStats
impl Sync for FilterStats
impl Unpin for FilterStats
impl UnwindSafe for FilterStats
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<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>
Converts
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>
Converts
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