| 46 | } |
| 47 | |
| 48 | Result<std::shared_ptr<Table>> TableFromExecBatches( |
| 49 | const std::shared_ptr<Schema>& schema, const std::vector<ExecBatch>& exec_batches) { |
| 50 | RecordBatchVector batches; |
| 51 | for (const auto& batch : exec_batches) { |
| 52 | ARROW_ASSIGN_OR_RAISE(auto rb, batch.ToRecordBatch(schema)); |
| 53 | batches.push_back(std::move(rb)); |
| 54 | } |
| 55 | return Table::FromRecordBatches(schema, batches); |
| 56 | } |
| 57 | |
| 58 | size_t ThreadIndexer::operator()() { |
| 59 | auto id = std::this_thread::get_id(); |