MCPcopy Create free account
hub / github.com/apache/arrow / dataset___FileSystemDatasetFactory__MakePaths

Function dataset___FileSystemDatasetFactory__MakePaths

r/src/dataset.cpp:200–210  ·  view source on GitHub ↗

[[dataset::export]]

Source from the content-addressed store, hash-verified

198
199// [[dataset::export]]
200std::shared_ptr<ds::FileSystemDatasetFactory>
201dataset___FileSystemDatasetFactory__MakePaths(
202 const std::shared_ptr<fs::FileSystem>& fs, const std::vector<std::string>& paths,
203 const std::shared_ptr<ds::FileFormat>& format, bool exclude_invalid_files) {
204 // exclude_invalid_files is the only meaningful option with a vector of paths
205 auto options = ds::FileSystemFactoryOptions{};
206 options.exclude_invalid_files = exclude_invalid_files;
207
208 return arrow::internal::checked_pointer_cast<ds::FileSystemDatasetFactory>(
209 ValueOrStop(ds::FileSystemDatasetFactory::Make(fs, paths, format, options)));
210}
211
212// FileFormat, ParquetFileFormat, IpcFileFormat
213

Calls 2

ValueOrStopFunction · 0.85
MakeFunction · 0.50

Tested by

no test coverage detected