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

Function InitStateful

cpp/src/arrow/compute/exec_test.cc:985–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

983};
984
985Result<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
991Status 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected