| 471 | |
| 472 | template <typename DestType> |
| 473 | void AddMapCast(CastFunction* func) { |
| 474 | ScalarKernel kernel; |
| 475 | kernel.exec = CastMap<DestType>::Exec; |
| 476 | kernel.signature = |
| 477 | KernelSignature::Make({InputType(MapType::type_id)}, kOutputTargetType); |
| 478 | kernel.null_handling = NullHandling::COMPUTED_NO_PREALLOCATE; |
| 479 | DCHECK_OK(func->AddKernel(MapType::type_id, std::move(kernel))); |
| 480 | } |
| 481 | |
| 482 | } // namespace |
| 483 |