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

Function ArraySortIndicesChunked

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

Source from the content-addressed store, hash-verified

554};
555
556Status ArraySortIndicesChunked(KernelContext* ctx, const ExecBatch& batch, Datum* out) {
557 const auto& options = ArraySortIndicesState::Get(ctx);
558 ArrayData* out_arr = out->mutable_array();
559 DCHECK_EQ(out_arr->length, batch.length);
560 uint64_t* out_begin = out_arr->GetMutableValues<uint64_t>(1);
561 uint64_t* out_end = out_begin + out_arr->length;
562 std::iota(out_begin, out_end, 0);
563 return SortChunkedArray(ctx->exec_context(), out_begin, out_end,
564 *batch[0].chunked_array(), options.order,
565 options.null_placement)
566 .status();
567}
568
569template <template <typename...> class ExecTemplate>
570void AddArraySortingKernels(VectorKernel base, VectorFunction* func) {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected