Skip to main content

covering_estimate_rows

Function covering_estimate_rows 

Source
pub fn covering_estimate_rows(covering: &[CellId]) -> u64
Expand description

Area-based cardinality estimate for a geo scan covering: sum the exact cell areas (steradians), convert to square degrees, and multiply by the [ASSUMED_ROWS_PER_SQ_DEG] placeholder density. Clamped to ≥ 1 so any covering (including a single point leaf) estimates at least one row.

Deliberately crude: cell areas are the true sphere area, not the indexed term count under them — the per-bucket counts of the geo cell-count histogram are the real signal this fallback stands in for.