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

Method Make

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

Source from the content-addressed store, hash-verified

233};
234
235Result<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
250Result<std::shared_ptr<Dataset>> FileSystemDataset::ReplaceSchema(
251 std::shared_ptr<Schema> schema) const {

Callers

nothing calls this directly

Calls 1

SetupSubtreePruningMethod · 0.80

Tested by

no test coverage detected