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

Function AddMapLookupKernels

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

Source from the content-addressed store, hash-verified

931};
932
933void AddMapLookupKernels(ScalarFunction* func) {
934 ScalarKernel kernel({InputType(Type::MAP)}, OutputType(ResolveMapLookupType),
935 ResolveMapLookup::Exec, OptionsWrapper<MapLookupOptions>::Init);
936 kernel.null_handling = NullHandling::COMPUTED_NO_PREALLOCATE;
937 kernel.mem_allocation = MemAllocation::NO_PREALLOCATE;
938 DCHECK_OK(func->AddKernel(std::move(kernel)));
939}
940
941const FunctionDoc map_lookup_doc{
942 "Find the items corresponding to a given key in a Map",

Callers 1

RegisterScalarNestedFunction · 0.85

Calls 3

InputTypeFunction · 0.85
OutputTypeFunction · 0.85
AddKernelMethod · 0.45

Tested by

no test coverage detected