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

Function AddListSliceKernels

cpp/src/arrow/compute/kernels/scalar_nested.cc:406–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404
405template <typename InListType>
406void AddListSliceKernels(ScalarFunction* func) {
407 auto inputs = {InputType(InListType::type_id)};
408 auto output = OutputType{MakeListSliceResolve};
409 ScalarKernel kernel(inputs, output, ListSlice<InListType>::Exec,
410 OptionsWrapper<ListSliceOptions>::Init);
411 kernel.null_handling = NullHandling::COMPUTED_NO_PREALLOCATE;
412 kernel.mem_allocation = MemAllocation::NO_PREALLOCATE;
413 DCHECK_OK(func->AddKernel(std::move(kernel)));
414}
415
416void AddListSliceKernels(ScalarFunction* func) {
417 AddListSliceKernels<ListType>(func);

Callers 1

RegisterScalarNestedFunction · 0.85

Calls 2

InputTypeFunction · 0.85
AddKernelMethod · 0.45

Tested by

no test coverage detected