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

Method HandleBatch

cpp/src/arrow/dataset/scan_node.cc:259–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257 }
258
259 Status HandleBatch(const std::shared_ptr<RecordBatch>& batch) {
260 ARROW_ASSIGN_OR_RAISE(
261 compute::ExecBatch evolved_batch,
262 scan_->fragment_evolution->EvolveBatch(
263 batch, node_->options_.columns, *scan_->scan_request.fragment_selection));
264 compute::ExecBatch with_known_values = AddKnownValues(std::move(evolved_batch));
265 node_->plan_->query_context()->ScheduleTask(
266 [node = node_, output_batch = std::move(with_known_values)] {
267 return node->output_->InputReceived(node, output_batch);
268 },
269 "ScanNode::ProcessMorsel");
270 return Status::OK();
271 }
272
273 int cost() const override { return cost_; }
274

Callers

nothing calls this directly

Calls 4

ScheduleTaskMethod · 0.80
query_contextMethod · 0.80
OKFunction · 0.50
InputReceivedMethod · 0.45

Tested by

no test coverage detected