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

Method ArrayScalar

cpp/src/arrow/compute/kernels/codegen_internal.h:832–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

830 }
831
832 static Status ArrayScalar(KernelContext* ctx, const ArraySpan& arg0, const Scalar& arg1,
833 ExecResult* out) {
834 Status st = Status::OK();
835 ArrayIterator<Arg0Type> arg0_it(arg0);
836 auto arg1_val = UnboxScalar<Arg1Type>::Unbox(arg1);
837 RETURN_NOT_OK(
838 OutputAdapter<OutType>::Write(ctx, out->array_span_mutable(), [&]() -> OutValue {
839 return Op::template Call<OutValue, Arg0Value, Arg1Value>(ctx, arg0_it(),
840 arg1_val, &st);
841 }));
842 return st;
843 }
844
845 static Status ScalarArray(KernelContext* ctx, const Scalar& arg0, const ArraySpan& arg1,
846 ExecResult* out) {

Callers

nothing calls this directly

Calls 2

WriteFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected