| 81 | : factories_(std::move(factories)) {} |
| 82 | |
| 83 | Result<std::shared_ptr<DatasetFactory>> UnionDatasetFactory::Make( |
| 84 | std::vector<std::shared_ptr<DatasetFactory>> factories) { |
| 85 | for (const auto& factory : factories) { |
| 86 | if (factory == nullptr) { |
| 87 | return Status::Invalid("Can't accept nullptr DatasetFactory"); |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | return std::shared_ptr<UnionDatasetFactory>{ |
| 92 | new UnionDatasetFactory(std::move(factories))}; |
| 93 | } |
| 94 | |
| 95 | Result<std::vector<std::shared_ptr<Schema>>> UnionDatasetFactory::InspectSchemas( |
| 96 | InspectOptions options) { |
nothing calls this directly
no test coverage detected