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

Class File

cpp/src/arrow/filesystem/mockfs.cc:59–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57class Entry;
58
59struct File {
60 TimePoint mtime;
61 std::string name;
62 std::shared_ptr<Buffer> data;
63 std::shared_ptr<const KeyValueMetadata> metadata;
64
65 File(TimePoint mtime, std::string name) : mtime(mtime), name(std::move(name)) {}
66
67 int64_t size() const { return data ? data->size() : 0; }
68
69 explicit operator std::string_view() const {
70 if (data) {
71 return std::string_view(*data);
72 } else {
73 return "";
74 }
75 }
76};
77
78struct Directory {
79 std::string name;

Callers 12

TEST_FFunction · 0.70
OpenOutputStreamMethod · 0.70
CopyFileMethod · 0.70
TEST_FFunction · 0.50
TEST_FFunction · 0.50
GetDatasetFunction · 0.50
TestPathTreeMethod · 0.50
TESTFunction · 0.50
ParsePathListMethod · 0.50
MakeFileSystemMethod · 0.50

Calls

no outgoing calls

Tested by 8

TEST_FFunction · 0.56
TEST_FFunction · 0.40
TEST_FFunction · 0.40
TestPathTreeMethod · 0.40
TESTFunction · 0.40
ParsePathListMethod · 0.40
MakeFileSystemMethod · 0.40