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

Function MakeShiftFunctionNotNull

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

Source from the content-addressed store, hash-verified

996
997template <typename Op>
998std::shared_ptr<ScalarFunction> MakeShiftFunctionNotNull(std::string name,
999 FunctionDoc doc) {
1000 auto func = std::make_shared<ArithmeticFunction>(name, Arity::Binary(), std::move(doc));
1001 for (const auto& ty : IntTypes()) {
1002 auto exec = ShiftExecFromOp<ScalarBinaryNotNullEqualTypes, Op>(ty);
1003 DCHECK_OK(func->AddKernel({ty, ty}, ty, exec));
1004 }
1005 AddNullExec(func.get());
1006 return func;
1007}
1008
1009template <typename Op, typename FunctionImpl = ArithmeticFloatingPointFunction>
1010std::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