| 509 | |
| 510 | template <typename ResolvedSortKey, typename ResolvedSortKeyFactory> |
| 511 | Result<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 | |
| 524 | template <typename ResolvedSortKey, typename TableOrBatch> |
| 525 | Result<std::vector<ResolvedSortKey>> ResolveSortKeys( |
no test coverage detected