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

Function AddKernel

cpp/src/arrow/compute/kernels/vector_replace.cc:803–821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801};
802
803void AddKernel(Type::type type_id, std::shared_ptr<KernelSignature> signature,
804 ArrayKernelExec exec, VectorKernel::ChunkedExec exec_chunked,
805 FunctionRegistry* registry, VectorFunction* func) {
806 VectorKernel kernel;
807 kernel.can_execute_chunkwise = false;
808 if (is_fixed_width(type_id)) {
809 kernel.null_handling = NullHandling::type::COMPUTED_PREALLOCATE;
810 } else {
811 kernel.can_write_into_slices = false;
812 kernel.null_handling = NullHandling::type::COMPUTED_NO_PREALLOCATE;
813 }
814 kernel.mem_allocation = MemAllocation::type::PREALLOCATE;
815 kernel.signature = std::move(signature);
816 kernel.exec = std::move(exec);
817 kernel.exec_chunked = exec_chunked;
818 kernel.can_execute_chunkwise = false;
819 kernel.output_chunked = false;
820 DCHECK_OK(func->AddKernel(std::move(kernel)));
821}
822
823template <template <class> class Functor, template <class> class ChunkedFunctor>
824void RegisterVectorFunction(FunctionRegistry* registry,

Callers 2

AddKernelMethod · 0.85
RegisterVectorFunctionFunction · 0.85

Calls 2

is_fixed_widthFunction · 0.85
AddKernelMethod · 0.45

Tested by

no test coverage detected