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

Method Exec

cpp/src/arrow/compute/kernels/aggregate_mode.cc:363–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361 using CType = typename T::c_type;
362
363 Status Exec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) {
364 const ArraySpan& values = batch[0].array;
365 CType min, max;
366 if (ShouldUseCountMode<CType>(values, values.length - values.GetNullCount(), &min,
367 &max)) {
368 return CountModer<T>(min, max).Exec(ctx, batch, out);
369 }
370 return SortModer<T>().Exec(ctx, batch, out);
371 }
372
373 Status ExecChunked(KernelContext* ctx, const ExecBatch& batch, Datum* out) {
374 const ChunkedArray& values = *batch[0].chunked_array();

Callers

nothing calls this directly

Calls 2

GetNullCountMethod · 0.80
ExecMethod · 0.45

Tested by

no test coverage detected