| 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)); |
no test coverage detected