MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / row_has_empty_entries

Method row_has_empty_entries

ciphercore-base/src/evaluators/join.rs:43–56  ·  view source on GitHub ↗

Checks that the row with a given index has 0 in the null column or contains entries with the zero mask in given columns

(&self, row_index: usize, headers: &[String])

Source from the content-addressed store, hash-verified

41 }
42 // Checks that the row with a given index has 0 in the null column or contains entries with the zero mask in given columns
43 fn row_has_empty_entries(&self, row_index: usize, headers: &[String]) -> bool {
44 if self.null_column[row_index] == 0 {
45 return true;
46 }
47 if !self.has_column_masks() {
48 return false;
49 }
50 for h in headers {
51 if self.get_mask_entry(h, row_index) == 0 {
52 return true;
53 }
54 }
55 false
56 }
57
58 // Merges given columns of the row with a given index.
59 fn get_flattened_row(&self, row_index: usize, headers: &[String]) -> Vec<u128> {

Callers 4

get_inner_join_columnsFunction · 0.80
get_left_join_columnsFunction · 0.80
get_union_columnsFunction · 0.80

Calls 2

has_column_masksMethod · 0.80
get_mask_entryMethod · 0.80

Tested by

no test coverage detected