Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions rust/lance-index-core/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ pub const COMPOUND_PEAK_ADDRESS_RESOLUTION_BATCH_SIZE_METRIC: &str =
"compound_peak_address_resolution_batch_size";
pub const COMPOUND_SCORE_FLOOR_OVERFLOWS_METRIC: &str = "compound_score_floor_overflows";
pub const COMPOUND_PEAK_BUFFERED_CANDIDATES_METRIC: &str = "compound_peak_buffered_candidates";
pub const COMPOUND_POSITIVE_SURVIVORS_METRIC: &str = "compound_positive_survivors";
pub const COMPOUND_MUST_NOT_PROBES_METRIC: &str = "compound_must_not_probes";
pub const COMPOUND_MUST_NOT_POSTING_LOADS_METRIC: &str = "compound_must_not_posting_loads";
pub const COMPOUND_SHOULD_SKIPPED_WINDOWS_METRIC: &str = "compound_should_skipped_windows";
pub const COMPOUND_SHOULD_BOUND_RECOMPUTATIONS_METRIC: &str =
"compound_should_bound_recomputations";
Expand Down Expand Up @@ -113,6 +116,16 @@ pub trait MetricsCollector: Send + Sync {
/// Record a candidate-buffer high-water mark for compound FTS.
fn record_compound_peak_buffered_candidates(&self, _num_candidates: usize) {}

/// Record compound FTS candidates whose exact positive score reached the
/// current competitive floor before prohibited clauses were evaluated.
fn record_compound_positive_survivors(&self, _num_candidates: usize) {}

/// Record candidate-level probes of compound FTS MUST_NOT clauses.
fn record_compound_must_not_probes(&self, _num_probes: usize) {}

/// Record deferred prohibited posting leaves that were actually loaded.
fn record_compound_must_not_posting_loads(&self, _num_loads: usize) {}

/// Record pure-SHOULD compound FTS windows skipped using score bounds.
fn record_compound_should_skipped_windows(&self, _num_windows: usize) {}

Expand Down
Loading
Loading