| 983 | }; |
| 984 | |
| 985 | Result<std::unique_ptr<KernelState>> InitStateful(KernelContext*, |
| 986 | const KernelInitArgs& args) { |
| 987 | auto func_options = static_cast<const ExampleOptions*>(args.options); |
| 988 | return std::make_unique<ExampleState>(func_options ? func_options->value : nullptr); |
| 989 | } |
| 990 | |
| 991 | Status ExecStateful(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { |
| 992 | // We take the value from the state and multiply the data in batch[0] with it |
nothing calls this directly
no outgoing calls
no test coverage detected