MCPcopy Create free account
hub / github.com/apache/arrow / CompareSessionOptionMaps

Function CompareSessionOptionMaps

cpp/src/arrow/flight/types.cc:518–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516}
517
518static bool CompareSessionOptionMaps(const std::map<std::string, SessionOptionValue>& a,
519 const std::map<std::string, SessionOptionValue>& b) {
520 if (a.size() != b.size()) {
521 return false;
522 }
523 for (const auto& [k, v] : a) {
524 if (const auto it = b.find(k); it == b.end()) {
525 return false;
526 } else {
527 const auto& b_v = it->second;
528 if (v.index() != b_v.index()) {
529 return false;
530 }
531 if (v != b_v) {
532 return false;
533 }
534 }
535 }
536 return true;
537}
538
539// SetSessionOptionErrorValue
540

Callers 1

EqualsMethod · 0.85

Calls 4

sizeMethod · 0.45
findMethod · 0.45
endMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected