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

Method compareRowsWithSortKeys

bolt/exec/WindowPartition.cpp:137–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137bool WindowPartition::compareRowsWithSortKeys(const char* lhs, const char* rhs)
138 const {
139 if (lhs == rhs) {
140 return false;
141 }
142 for (auto& key : sortKeyInfo_) {
143 if (auto result = data_->compare(
144 lhs,
145 rhs,
146 key.first,
147 {key.second.isNullsFirst(), key.second.isAscending(), false})) {
148 return result < 0;
149 }
150 }
151 return false;
152}
153
154std::pair<vector_size_t, vector_size_t> WindowPartition::computePeerBuffers(
155 vector_size_t start,

Callers

nothing calls this directly

Calls 14

isNullsFirstMethod · 0.80
isAscendingMethod · 0.80
columnTypesMethod · 0.80
codegenCompareMethod · 0.80
getFuncPtrMethod · 0.80
columnAtMethod · 0.80
CompareFlagsClass · 0.50
compareMethod · 0.45
push_backMethod · 0.45
emptyMethod · 0.45
resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected