| 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 |
nothing calls this directly
no test coverage detected