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

Function LocalFileSystemFactory

cpp/src/arrow/filesystem/localfs.cc:720–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718}
719
720static Result<std::shared_ptr<fs::FileSystem>> LocalFileSystemFactory(
721 const arrow::util::Uri& uri, const io::IOContext& io_context, std::string* out_path) {
722 std::string path;
723 ARROW_ASSIGN_OR_RAISE(auto options, LocalFileSystemOptions::FromUri(uri, &path));
724 if (out_path != nullptr) {
725 *out_path = std::move(path);
726 }
727 return std::make_shared<LocalFileSystem>(options, io_context);
728}
729
730FileSystemRegistrar kLocalFileSystemModule[]{
731 ARROW_REGISTER_FILESYSTEM("file", LocalFileSystemFactory, {}),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected