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

Function ToString

cpp/src/arrow/filesystem/filesystem.cc:72–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70using internal::ToSlashes;
71
72std::string ToString(FileType ftype) {
73 switch (ftype) {
74 case FileType::NotFound:
75 return "not-found";
76 case FileType::Unknown:
77 return "unknown";
78 case FileType::File:
79 return "file";
80 case FileType::Directory:
81 return "directory";
82 default:
83 ARROW_LOG(FATAL) << "Invalid FileType value: " << static_cast<int>(ftype);
84 return "???";
85 }
86}
87
88// For googletest
89ARROW_EXPORT std::ostream& operator<<(std::ostream& os, FileType ftype) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected