Skip to main content

index_admissible_for_query

Function index_admissible_for_query 

Source
pub fn index_admissible_for_query(
    index: &Index,
    resolved_time_ranges: &[ResolvedTimeRange],
    skip_bindings: &[SkipIfAbsentBinding<'_>],
) -> bool
Expand description

Whether index may serve a query at all: the one candidate filter every index picker applies, so no picker can take one rule and miss the other. It joins the time-range provenance rule (index_admissible_for_resolved_time_range) and the skipIfAbsent rule (index_admissible_for_skip_if_absent). A picker reading documents through the index’s entries applies document_index_admissible_for_query instead.