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

Method Make

cpp/src/arrow/acero/sink_node.cc:147–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 ~SinkNode() override { *node_destroyed_ = true; }
146
147 static Result<ExecNode*> Make(ExecPlan* plan, std::vector<ExecNode*> inputs,
148 const ExecNodeOptions& options) {
149 RETURN_NOT_OK(ValidateExecNodeInputs(plan, inputs, 1, "SinkNode"));
150
151 const auto& sink_options = checked_cast<const SinkNodeOptions&>(options);
152 RETURN_NOT_OK(ValidateOptions(sink_options));
153 return plan->EmplaceNode<SinkNode>(plan, std::move(inputs), sink_options.generator,
154 sink_options.schema, sink_options.backpressure,
155 sink_options.backpressure_monitor,
156 sink_options.sequence_output);
157 }
158
159 const char* kind_name() const override { return "SinkNode"; }
160

Callers

nothing calls this directly

Calls 2

ValidateExecNodeInputsFunction · 0.85
ValidateOptionsFunction · 0.50

Tested by

no test coverage detected