| 148 | out_type_id_(out_type_id) {} |
| 149 | |
| 150 | Status CastFunction::AddKernel(Type::type in_type_id, ScalarKernel kernel) { |
| 151 | // We use the same KernelInit for every cast |
| 152 | kernel.init = internal::CastState::Init; |
| 153 | RETURN_NOT_OK(ScalarFunction::AddKernel(kernel)); |
| 154 | in_type_ids_.push_back(in_type_id); |
| 155 | return Status::OK(); |
| 156 | } |
| 157 | |
| 158 | Status CastFunction::AddKernel(Type::type in_type_id, std::vector<InputType> in_types, |
| 159 | OutputType out_type, ArrayKernelExec exec, |