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

Function ArraySortIndicesChunked

cpp/src/arrow/compute/kernels/vector_array_sort.cc:542–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

540};
541
542Status ArraySortIndicesChunked(KernelContext* ctx, const ExecBatch& batch, Datum* out) {
543 const auto& options = ArraySortIndicesState::Get(ctx);
544 ArrayData* out_arr = out->mutable_array();
545 DCHECK_EQ(out_arr->length, batch.length);
546 std::span<uint64_t> out_span{out_arr->GetMutableValues<uint64_t>(1),
547 static_cast<size_t>(out_arr->length)};
548 std::iota(out_span.begin(), out_span.end(), 0);
549 return SortChunkedArray(ctx->exec_context(), out_span, *batch[0].chunked_array(),
550 options.order, options.null_placement)
551 .status();
552}
553
554template <template <typename...> class ExecTemplate>
555void AddArraySortingKernels(VectorKernel base, VectorFunction* func) {

Callers

nothing calls this directly

Calls 7

SortChunkedArrayFunction · 0.85
exec_contextMethod · 0.80
chunked_arrayMethod · 0.80
GetFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected