| 281 | } |
| 282 | |
| 283 | Result<FragmentIterator> InMemoryDataset::GetFragmentsImpl(compute::Expression) { |
| 284 | auto schema = this->schema(); |
| 285 | |
| 286 | auto create_fragment = |
| 287 | [schema](std::shared_ptr<RecordBatch> batch) -> Result<std::shared_ptr<Fragment>> { |
| 288 | RETURN_NOT_OK(CheckProjectable(*schema, *batch->schema())); |
| 289 | return std::make_shared<InMemoryFragment>(RecordBatchVector{std::move(batch)}); |
| 290 | }; |
| 291 | |
| 292 | auto batches_it = get_batches_->Get(); |
| 293 | return MakeMaybeMapIterator(std::move(create_fragment), std::move(batches_it)); |
| 294 | } |
| 295 | |
| 296 | Result<std::shared_ptr<UnionDataset>> UnionDataset::Make(std::shared_ptr<Schema> schema, |
| 297 | DatasetVector children) { |
nothing calls this directly
no test coverage detected