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

Method KernelInit

cpp/src/arrow/compute/function.cc:198–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 6

CheckOptionsFunction · 0.70
ARROW_ASSIGN_OR_RAISEFunction · 0.50
OKFunction · 0.50
initMethod · 0.45
getMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected