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

Function AddNestedIfElseKernels

cpp/src/arrow/compute/kernels/scalar_if_else.cc:1356–1368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1354}
1355
1356void AddNestedIfElseKernels(const std::shared_ptr<IfElseFunction>& scalar_function) {
1357 for (const auto type_id :
1358 {Type::LIST, Type::LARGE_LIST, Type::LIST_VIEW, Type::LARGE_LIST_VIEW,
1359 Type::FIXED_SIZE_LIST, Type::MAP, Type::STRUCT, Type::DENSE_UNION,
1360 Type::SPARSE_UNION, Type::DICTIONARY}) {
1361 ScalarKernel kernel({boolean(), InputType(type_id), InputType(type_id)}, LastType,
1362 NestedIfElseExec::Exec);
1363 kernel.null_handling = NullHandling::COMPUTED_NO_PREALLOCATE;
1364 kernel.mem_allocation = MemAllocation::NO_PREALLOCATE;
1365 kernel.can_write_into_slices = false;
1366 DCHECK_OK(scalar_function->AddKernel(std::move(kernel)));
1367 }
1368}
1369
1370// Copy fixed-width values from a scalar/array into an output values buffer
1371template <typename Type>

Callers 1

RegisterScalarIfElseFunction · 0.85

Calls 2

InputTypeFunction · 0.85
AddKernelMethod · 0.45

Tested by

no test coverage detected