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

Method OpenReadable

cpp/src/arrow/io/file.cc:103–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 }
102
103 Status OpenReadable(const std::string& path) {
104 RETURN_NOT_OK(SetFileName(path));
105
106 ARROW_ASSIGN_OR_RAISE(fd_, ::arrow::internal::FileOpenReadable(file_name_));
107 ARROW_ASSIGN_OR_RAISE(size_, ::arrow::internal::FileGetSize(fd_.fd()));
108
109 mode_ = FileMode::READ;
110 return Status::OK();
111 }
112
113 Status OpenReadable(int fd) {
114 ARROW_ASSIGN_OR_RAISE(size_, ::arrow::internal::FileGetSize(fd));

Callers 1

OpenMethod · 0.45

Calls 6

FileOpenReadableFunction · 0.85
FileGetSizeFunction · 0.85
FileDescriptorFunction · 0.85
ARROW_ASSIGN_OR_RAISEFunction · 0.50
OKFunction · 0.50
fdMethod · 0.45

Tested by

no test coverage detected