Return the estimate of applying a filter with estimated selectivity `selectivity` to this Precision. A selectivity of `1.0` means that all rows are selected. A selectivity of `0.5` means half the rows are selected. Will always return inexact statistics.
(self, selectivity: f64)
| 197 | /// rows are selected. A selectivity of `0.5` means half the rows are |
| 198 | /// selected. Will always return inexact statistics. |
| 199 | pub fn with_estimated_selectivity(self, selectivity: f64) -> Self { |
| 200 | self.map(|v| ((v as f64 * selectivity).ceil()) as usize) |
| 201 | .to_inexact() |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | impl Precision<ScalarValue> { |
no test coverage detected