MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / rows_equal_by_values

Method rows_equal_by_values

graphlite/src/exec/executor.rs:9528–9545  ·  view source on GitHub ↗

Compare rows based on their values (backward compatibility)

(&self, row1: &Row, row2: &Row)

Source from the content-addressed store, hash-verified

9526
9527 /// Compare rows based on their values (backward compatibility)
9528 fn rows_equal_by_values(&self, row1: &Row, row2: &Row) -> bool {
9529 if row1.values.len() != row2.values.len() {
9530 return false;
9531 }
9532
9533 // Compare by key names instead of relying on HashMap iteration order
9534 for (key, value1) in &row1.values {
9535 match row2.values.get(key) {
9536 Some(value2) => {
9537 if value1 != value2 {
9538 return false;
9539 }
9540 }
9541 None => return false,
9542 }
9543 }
9544 true
9545 }
9546}

Callers 2

rows_equalMethod · 0.80

Calls 2

lenMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected