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

Function ResolveSortKeys

cpp/src/arrow/compute/kernels/vector_sort_internal.h:511–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509
510template <typename ResolvedSortKey, typename ResolvedSortKeyFactory>
511Result<std::vector<ResolvedSortKey>> ResolveSortKeys(
512 const Schema& schema, const std::vector<SortKey>& sort_keys,
513 ResolvedSortKeyFactory&& factory) {
514 ARROW_ASSIGN_OR_RAISE(const auto fields, FindSortKeys(schema, sort_keys));
515 std::vector<ResolvedSortKey> resolved;
516 resolved.reserve(fields.size());
517 for (const auto& f : fields) {
518 ARROW_ASSIGN_OR_RAISE(auto resolved_key, factory(f));
519 resolved.push_back(std::move(resolved_key));
520 }
521 return resolved;
522}
523
524template <typename ResolvedSortKey, typename TableOrBatch>
525Result<std::vector<ResolvedSortKey>> ResolveSortKeys(

Callers 4

RecordBatchSelectorMethod · 0.85
TableSelectorMethod · 0.85
TableSorterMethod · 0.85

Calls 6

push_backMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45
schemaMethod · 0.45
is_nestedMethod · 0.45
columnMethod · 0.45

Tested by

no test coverage detected