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

Method get

r/src/filesystem.cpp:30–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace cpp11 {
29
30const char* r6_class_name<fs::FileSystem>::get(
31 const std::shared_ptr<fs::FileSystem>& file_system) {
32 auto type_name = file_system->type_name();
33
34 if (type_name == "local") {
35 return "LocalFileSystem";
36 } else if (type_name == "s3") {
37 return "S3FileSystem";
38 } else if (type_name == "gcs") {
39 return "GcsFileSystem";
40 } else if (type_name == "abfs") {
41 return "AzureFileSystem";
42 // Uncomment these once R6 classes for these filesystems are added
43 // } else if (type_name == "hdfs") {
44 // return "HadoopFileSystem";
45 } else if (type_name == "subtree") {
46 return "SubTreeFileSystem";
47 } else {
48 return "FileSystem";
49 }
50}
51
52} // namespace cpp11
53

Callers

nothing calls this directly

Calls 1

type_nameMethod · 0.45

Tested by

no test coverage detected