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

Function MakeShiftFunctionNotNull

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

Source from the content-addressed store, hash-verified

988
989template <typename Op>
990std::shared_ptr<ScalarFunction> MakeShiftFunctionNotNull(std::string name,
991 FunctionDoc doc) {
992 auto func = std::make_shared<ArithmeticFunction>(name, Arity::Binary(), std::move(doc));
993 for (const auto& ty : IntTypes()) {
994 auto exec = ShiftExecFromOp<ScalarBinaryNotNullEqualTypes, Op>(ty);
995 DCHECK_OK(func->AddKernel({ty, ty}, ty, exec));
996 }
997 AddNullExec(func.get());
998 return func;
999}
1000
1001template <typename Op, typename FunctionImpl = ArithmeticFloatingPointFunction>
1002std::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