| 233 | }; |
| 234 | |
| 235 | Result<std::shared_ptr<FileSystemDataset>> FileSystemDataset::Make( |
| 236 | std::shared_ptr<Schema> schema, compute::Expression root_partition, |
| 237 | std::shared_ptr<FileFormat> format, std::shared_ptr<fs::FileSystem> filesystem, |
| 238 | std::vector<std::shared_ptr<FileFragment>> fragments, |
| 239 | std::shared_ptr<Partitioning> partitioning) { |
| 240 | std::shared_ptr<FileSystemDataset> out( |
| 241 | new FileSystemDataset(std::move(schema), std::move(root_partition))); |
| 242 | out->format_ = std::move(format); |
| 243 | out->filesystem_ = std::move(filesystem); |
| 244 | out->fragments_ = std::move(fragments); |
| 245 | out->partitioning_ = std::move(partitioning); |
| 246 | out->SetupSubtreePruning(); |
| 247 | return out; |
| 248 | } |
| 249 | |
| 250 | Result<std::shared_ptr<Dataset>> FileSystemDataset::ReplaceSchema( |
| 251 | std::shared_ptr<Schema> schema) const { |
nothing calls this directly
no test coverage detected