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

Function AddZeroCopyCast

cpp/src/arrow/compute/kernels/scalar_cast_internal.cc:271–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271void AddZeroCopyCast(Type::type in_type_id, InputType in_type, OutputType out_type,
272 CastFunction* func) {
273 auto sig = KernelSignature::Make({in_type}, out_type);
274 ScalarKernel kernel;
275 kernel.exec = ZeroCopyCastExec;
276 kernel.signature = sig;
277 kernel.null_handling = NullHandling::COMPUTED_NO_PREALLOCATE;
278 kernel.mem_allocation = MemAllocation::NO_PREALLOCATE;
279 DCHECK_OK(func->AddKernel(in_type_id, std::move(kernel)));
280}
281
282static bool CanCastFromDictionary(Type::type type_id) {
283 /// TODO(GH-43010): add is_binary_view_like() here once array_take

Callers 8

GetNumericCastsFunction · 0.85
GetDate32CastFunction · 0.85
GetDate64CastFunction · 0.85
GetDurationCastFunction · 0.85
GetTime32CastFunction · 0.85
GetTime64CastFunction · 0.85
GetTimestampCastFunction · 0.85
GetBooleanCastsFunction · 0.85

Calls 2

MakeFunction · 0.50
AddKernelMethod · 0.45

Tested by

no test coverage detected