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

Method Make

cpp/src/arrow/dataset/file_base.cc:236–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

SetupSubtreePruningMethod · 0.80

Tested by

no test coverage detected