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

Method is_null

nodedb-strict/src/decode.rs:99–105  ·  view source on GitHub ↗

Check whether column `col_idx` is null in the given tuple.

(&self, tuple: &[u8], col_idx: usize)

Source from the content-addressed store, hash-verified

97
98 /// Check whether column `col_idx` is null in the given tuple.
99 pub fn is_null(&self, tuple: &[u8], col_idx: usize) -> Result<bool, StrictError> {
100 self.check_bounds(col_idx)?;
101 self.check_min_size(tuple)?;
102
103 let bitmap_byte = tuple[9 + col_idx / 8];
104 Ok(bitmap_byte & (1 << (col_idx % 8)) != 0)
105 }
106
107 /// Extract raw bytes for a fixed-size column. Returns `None` if null.
108 ///

Callers 12

newMethod · 0.45
dropMethod · 0.45
matches_metadata_filterFunction · 0.45
eval_scopeMethod · 0.45
matches_valueMethod · 0.45
try_evalFunction · 0.45
eq_valueFunction · 0.45
extract_non_nullFunction · 0.45
compute_aggregate_binaryFunction · 0.45
find_minmaxFunction · 0.45
build_null_bufferFunction · 0.45
extract_valueMethod · 0.45

Calls 2

check_boundsMethod · 0.80
check_min_sizeMethod · 0.80

Tested by

no test coverage detected