| 196 | virtual ~FunctionExecutorImpl() {} |
| 197 | |
| 198 | Status KernelInit(const FunctionOptions* options) { |
| 199 | RETURN_NOT_OK(CheckOptions(func, options)); |
| 200 | if (options == NULLPTR) { |
| 201 | options = func.default_options(); |
| 202 | } |
| 203 | if (kernel->init) { |
| 204 | ARROW_ASSIGN_OR_RAISE(state, |
| 205 | kernel->init(&kernel_ctx, {kernel, in_types, options})); |
| 206 | kernel_ctx.SetState(state.get()); |
| 207 | } |
| 208 | |
| 209 | RETURN_NOT_OK(executor->Init(&kernel_ctx, {kernel, in_types, options})); |
| 210 | this->options = options; |
| 211 | inited = true; |
| 212 | return Status::OK(); |
| 213 | } |
| 214 | |
| 215 | Status Init(const FunctionOptions* options, ExecContext* exec_ctx) override { |
| 216 | if (exec_ctx == NULLPTR) { |
nothing calls this directly
no test coverage detected