pub fn estimate_pattern(
profile: &StatsProfile,
pattern: &EncodedTriplePattern,
) -> u64Expand description
Selectivity estimate for pattern from profile.
Combines exact maps, CMS frequencies, and HLL-derived average fan-out under a bound predicate.
A bound named predicate that was never observed has no predicate_counts
key and no subjects_per_predicate HLL. That is zero (reported as 1 so
join order still has a positive number), not “unknown”: do not fall through
to StatsProfile::total_puts. Unbound ?p still uses total_puts / CMS.