Reimplemented from Impala::Util::IOBuffer. Definition at line 142 of file IOBufferFile.h. References Impala::Util::IOBuffer::Available(), FSeek(), FTell(), Impala::Util::IOBuffer::GetPosition(), Impala::Util::IOBuffer::Gets(), mFile, mUseMemory, and SetPosition(). 00143 { 00144 if (mUseMemory) 00145 return IOBuffer::Gets(buf, bytesToRead); 00146 00147 Int64 available = Available(); 00148 if (available < bytesToRead) 00149 bytesToRead = available; 00150 FSeek(mFile, GetPosition(), SEEK_SET); 00151 fgets(buf, bytesToRead, mFile); 00152 SetPosition(FTell(mFile)); 00153 return bytesToRead; 00154 }
Here is the call graph for this function:
|