MCPcopy Create free account
hub / github.com/bytedance/bolt / compareRowsWithKeys

Method compareRowsWithKeys

bolt/exec/WindowBuild.cpp:390–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390bool WindowBuild::compareRowsWithKeys(
391 const char* lhs,
392 const char* rhs,
393 const std::vector<std::pair<column_index_t, core::SortOrder>>& keys) {
394 if (lhs == rhs) {
395 return false;
396 }
397 for (auto& key : keys) {
398 if (auto result = data_->compare(
399 lhs,
400 rhs,
401 key.first,
402 {key.second.isNullsFirst(), key.second.isAscending(), false})) {
403 return result < 0;
404 }
405 }
406 return false;
407}
408
409} // namespace bytedance::bolt::exec

Callers

nothing calls this directly

Calls 3

isNullsFirstMethod · 0.80
isAscendingMethod · 0.80
compareMethod · 0.45

Tested by

no test coverage detected