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

Method Exec

cpp/src/arrow/compute/kernels/aggregate_quantile.cc:428–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426 static constexpr int kMaxValueRange = 65536;
427
428 Status Exec(KernelContext* ctx, const ArraySpan& values, ExecResult* out) {
429 if (values.length - values.GetNullCount() >= kMinArraySize) {
430 CType min, max;
431 std::tie(min, max) = GetMinMax<CType>(values);
432 if (static_cast<uint64_t>(max) - static_cast<uint64_t>(min) <= kMaxValueRange) {
433 return CountQuantiler<InType>(min, max).Exec(ctx, values, out);
434 }
435 }
436 return SortQuantiler<InType>().Exec(ctx, values, out);
437 }
438
439 Status Exec(KernelContext* ctx, const ChunkedArray& values, Datum* out) {
440 if (values.length() - values.null_count() >= kMinArraySize) {

Callers

nothing calls this directly

Calls 4

GetNullCountMethod · 0.80
ExecMethod · 0.45
lengthMethod · 0.45
null_countMethod · 0.45

Tested by

no test coverage detected