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

Method DispatchExact

cpp/src/arrow/compute/function.cc:298–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296} // namespace detail
297
298Result<const Kernel*> Function::DispatchExact(
299 const std::vector<TypeHolder>& values) const {
300 if (kind_ == Function::META) {
301 return Status::NotImplemented("Dispatch for a MetaFunction's Kernels");
302 }
303 RETURN_NOT_OK(CheckArity(values.size()));
304
305 if (auto kernel = detail::DispatchExactImpl(this, values)) {
306 return kernel;
307 }
308 return detail::NoMatchingKernel(this, values);
309}
310
311Result<const Kernel*> Function::DispatchBest(std::vector<TypeHolder>* values) const {
312 // TODO(ARROW-11508) permit generic conversions here

Callers

nothing calls this directly

Calls 4

DispatchExactImplFunction · 0.85
NoMatchingKernelFunction · 0.85
NotImplementedFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected