@@ -100,15 +100,15 @@ class HdfsReadableFile::HdfsReadableFileImpl : public HdfsAnyFileImpl {
100100 return Status::OK ();
101101 }
102102
103- Status ReadAt (int64_t position, int32_t nbytes, int32_t * bytes_read, uint8_t * buffer) {
103+ Status ReadAt (int64_t position, int64_t nbytes, int64_t * bytes_read, uint8_t * buffer) {
104104 tSize ret = hdfsPread (fs_, file_, static_cast <tOffset>(position),
105105 reinterpret_cast <void *>(buffer), nbytes);
106106 RETURN_NOT_OK (CheckReadResult (ret));
107107 *bytes_read = ret;
108108 return Status::OK ();
109109 }
110110
111- Status Read (int32_t nbytes, int32_t * bytes_read, uint8_t * buffer) {
111+ Status Read (int64_t nbytes, int64_t * bytes_read, uint8_t * buffer) {
112112 tSize ret = hdfsRead (fs_, file_, reinterpret_cast <void *>(buffer), nbytes);
113113 RETURN_NOT_OK (CheckReadResult (ret));
114114 *bytes_read = ret;
@@ -138,11 +138,11 @@ Status HdfsReadableFile::Close() {
138138}
139139
140140Status HdfsReadableFile::ReadAt (
141- int64_t position, int32_t nbytes, int32_t * bytes_read, uint8_t * buffer) {
141+ int64_t position, int64_t nbytes, int64_t * bytes_read, uint8_t * buffer) {
142142 return impl_->ReadAt (position, nbytes, bytes_read, buffer);
143143}
144144
145- Status HdfsReadableFile::Read (int32_t nbytes, int32_t * bytes_read, uint8_t * buffer) {
145+ Status HdfsReadableFile::Read (int64_t nbytes, int64_t * bytes_read, uint8_t * buffer) {
146146 return impl_->Read (nbytes, bytes_read, buffer);
147147}
148148
@@ -177,7 +177,7 @@ class HdfsWriteableFile::HdfsWriteableFileImpl : public HdfsAnyFileImpl {
177177 return Status::OK ();
178178 }
179179
180- Status Write (const uint8_t * buffer, int32_t nbytes, int32_t * bytes_written) {
180+ Status Write (const uint8_t * buffer, int64_t nbytes, int64_t * bytes_written) {
181181 tSize ret = hdfsWrite (fs_, file_, reinterpret_cast <const void *>(buffer), nbytes);
182182 CHECK_FAILURE (ret, " Write" );
183183 *bytes_written = ret;
@@ -198,12 +198,12 @@ Status HdfsWriteableFile::Close() {
198198}
199199
200200Status HdfsWriteableFile::Write (
201- const uint8_t * buffer, int32_t nbytes, int32_t * bytes_read) {
201+ const uint8_t * buffer, int64_t nbytes, int64_t * bytes_read) {
202202 return impl_->Write (buffer, nbytes, bytes_read);
203203}
204204
205- Status HdfsWriteableFile::Write (const uint8_t * buffer, int32_t nbytes) {
206- int32_t bytes_written_dummy = 0 ;
205+ Status HdfsWriteableFile::Write (const uint8_t * buffer, int64_t nbytes) {
206+ int64_t bytes_written_dummy = 0 ;
207207 return Write (buffer, nbytes, &bytes_written_dummy);
208208}
209209
0 commit comments