| 526 | using ArrayType = typename TypeTraits<InType>::ArrayType; |
| 527 | |
| 528 | static Status Exec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { |
| 529 | const auto& options = ArraySortIndicesState::Get(ctx); |
| 530 | ArrayData* out_arr = out->array_data().get(); |
| 531 | std::span<uint64_t> out_span{out_arr->GetMutableValues<uint64_t>(1), |
| 532 | static_cast<size_t>(out_arr->length)}; |
| 533 | std::iota(out_span.begin(), out_span.end(), 0); |
| 534 | |
| 535 | ArrayType arr(batch[0].array.ToArrayData()); |
| 536 | ARROW_ASSIGN_OR_RAISE(auto sorter, GetArraySorter(*GetPhysicalType(arr.type()))); |
| 537 | |
| 538 | return sorter(out_span, arr, 0, options, ctx->exec_context()).status(); |
| 539 | } |
| 540 | }; |
| 541 | |
| 542 | Status ArraySortIndicesChunked(KernelContext* ctx, const ExecBatch& batch, Datum* out) { |
nothing calls this directly
no test coverage detected