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

Method AddKernel

cpp/src/arrow/compute/cast.cc:150–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 out_type_id_(out_type_id) {}
149
150Status CastFunction::AddKernel(Type::type in_type_id, ScalarKernel kernel) {
151 // We use the same KernelInit for every cast
152 kernel.init = internal::CastState::Init;
153 RETURN_NOT_OK(ScalarFunction::AddKernel(kernel));
154 in_type_ids_.push_back(in_type_id);
155 return Status::OK();
156}
157
158Status CastFunction::AddKernel(Type::type in_type_id, std::vector<InputType> in_types,
159 OutputType out_type, ArrayKernelExec exec,

Callers 15

RegisterUdfFunction · 0.45
TEST_FFunction · 0.45
CheckAddDispatchFunction · 0.45
TESTFunction · 0.45
AddCopyFunctionsMethod · 0.45
AddStatefulFunctionMethod · 0.45
AddScalarFunctionMethod · 0.45
RegisterInvalidInitFunction · 0.45
TESTFunction · 0.45

Calls 4

AddKernelFunction · 0.85
push_backMethod · 0.80
OKFunction · 0.50
MakeFunction · 0.50

Tested by 9

TEST_FFunction · 0.36
CheckAddDispatchFunction · 0.36
TESTFunction · 0.36
AddCopyFunctionsMethod · 0.36
AddStatefulFunctionMethod · 0.36
AddScalarFunctionMethod · 0.36
RegisterInvalidInitFunction · 0.36
TESTFunction · 0.36