//// Unified Query Algebra
//// Copyright (c) 2023-2026 Cognica, Inc.
////! Generic independent-domain join estimate.
usesuper::CardinalityEstimator;implCardinalityEstimator{/// Uniform, independent-key join heuristic `|L1| * |L2| / |dom(f)|`.
////// The formula is a cost estimate under those assumptions, not a bound on
/// the realized join cardinality.
pubfnestimate_join(&self, left_card:f64, right_card:f64, domain_size:f64)->f64{if domain_size <=0.0{return0.0;}(left_card * right_card)/ domain_size
}}