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

Function getSortedAggregateNames

bolt/functions/CoverageUtil.cpp:337–349  ·  view source on GitHub ↗

Returns alphabetically sorted list of aggregate functions available in Bolt, excluding compaion functions.

Source from the content-addressed store, hash-verified

335/// Returns alphabetically sorted list of aggregate functions available in
336/// Bolt, excluding compaion functions.
337std::vector<std::string> getSortedAggregateNames() {
338 std::vector<std::string> names;
339 exec::aggregateFunctions().withRLock([&](const auto& functions) {
340 names.reserve(functions.size());
341 for (const auto& entry : functions) {
342 if (!isCompanionFunctionName(entry.first, functions)) {
343 names.push_back(entry.first);
344 }
345 }
346 });
347 std::sort(names.begin(), names.end());
348 return names;
349}
350
351/// Returns alphabetically sorted list of window functions available in Bolt,
352/// excluding companion functions.

Callers 1

printBoltFunctionsFunction · 0.85

Calls 6

isCompanionFunctionNameFunction · 0.85
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected