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

Function BottomKDefault

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

Source from the content-addressed store, hash-verified

172 return SelectKOptions{k, keys};
173 }
174 static SelectKOptions BottomKDefault(int64_t k,
175 std::vector<std::string> key_names = {}) {
176 std::vector<SortKey> keys;
177 for (const auto& name : key_names) {
178 keys.emplace_back(SortKey(name, SortOrder::Ascending));
179 }
180 if (key_names.empty()) {
181 keys.emplace_back(SortKey("not-used", SortOrder::Ascending));
182 }
183 return SelectKOptions{k, keys};
184 }
185
186 /// Get sort_keys
187 /// 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