Whether a block can be entirely skipped based on its statistics. Returns `true` if the block provably contains no matching rows. Returns `false` if the block might contain matching rows (must scan).
(&self, stats: &BlockStats)
| 235 | /// Returns `true` if the block provably contains no matching rows. |
| 236 | /// Returns `false` if the block might contain matching rows (must scan). |
| 237 | pub fn can_skip_block(&self, stats: &BlockStats) -> bool { |
| 238 | match &self.value { |
| 239 | PredicateValue::Numeric(v) => can_skip_numeric(self.op, *v, stats), |
| 240 | PredicateValue::Integer(v) => can_skip_integer(self.op, *v, stats), |
| 241 | PredicateValue::String(v) => can_skip_string(self.op, v, stats), |
| 242 | } |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | /// Block-skip logic for numeric predicates. |
no test coverage detected