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

Function BottomKDefault

cpp/src/arrow/compute/api_vector.h:189–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187 return SelectKOptions{k, keys};
188 }
189 static SelectKOptions BottomKDefault(int64_t k,
190 std::vector<std::string> key_names = {}) {
191 std::vector<SortKey> keys;
192 for (const auto& name : key_names) {
193 keys.emplace_back(SortKey(name, SortOrder::Ascending));
194 }
195 if (key_names.empty()) {
196 keys.emplace_back(SortKey("not-used", SortOrder::Ascending));
197 }
198 return SelectKOptions{k, keys};
199 }
200
201 /// Get sort_keys
202 /// will be removed after null_placement has been removed from other

Callers 2

SelectKFunction · 0.85
TEST_FFunction · 0.85

Calls 3

emplace_backMethod · 0.80
SortKeyClass · 0.50
emptyMethod · 0.45

Tested by 2

SelectKFunction · 0.68
TEST_FFunction · 0.68