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

Function MakeShiftFunctionNotNull

cpp/src/arrow/compute/kernels/scalar_arithmetic.cc:1014–1023  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1012
1013template <typename Op>
1014std::shared_ptr<ScalarFunction> MakeShiftFunctionNotNull(std::string name,
1015 FunctionDoc doc) {
1016 auto func = std::make_shared<ArithmeticFunction>(name, Arity::Binary(), std::move(doc));
1017 for (const auto& ty : IntTypes()) {
1018 auto exec = ShiftExecFromOp<ScalarBinaryNotNullEqualTypes, Op>(ty);
1019 DCHECK_OK(func->AddKernel({ty, ty}, ty, exec));
1020 }
1021 AddNullExec(func.get());
1022 return func;
1023}
1024
1025template <typename Op, typename FunctionImpl = ArithmeticFloatingPointFunction>
1026std::shared_ptr<ScalarFunction> MakeUnaryArithmeticFunctionFloatingPoint(

Callers

nothing calls this directly

Calls 4

AddNullExecFunction · 0.85
BinaryFunction · 0.50
AddKernelMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected