template<class NativeType>
Reimplemented from Impala::Util::IOBuffer. Definition at line 317 of file IOBufferChannel.h. References Impala::Util::IOBuffer::GetPosition(), ILOG_ERROR, Read(), and SetPosition(). Referenced by NativeTypeRead(). 00318 { 00319 String fs = NativeTypeFormat<NativeType>(0); 00320 char buf[1024]; 00321 PositionType start = GetPosition(); 00322 Int64 nrRead = Read(buf, 1024); // does SetPosition 00323 Int64 i = 0; 00324 while ((buf[i] != ' ') && (i < nrRead)) 00325 i++; 00326 if(nrRead == 0) 00327 ILOG_ERROR("DoNativeTypeRead read 0 bytes") 00328 sscanf(buf, fs.c_str(), ptr); 00329 SetPosition(start + i + 1); 00330 }
Here is the call graph for this function: ![]()
|