MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / can_skip_block

Method can_skip_block

nodedb-columnar/src/predicate.rs:237–243  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 1

read_column_implMethod · 0.80

Calls 3

can_skip_numericFunction · 0.85
can_skip_integerFunction · 0.85
can_skip_stringFunction · 0.85

Tested by

no test coverage detected