template<class NativeType>
Reimplemented from Impala::Util::IOBuffer. Definition at line 291 of file IOBufferChannel.h. References Impala::Util::IOBuffer::GetPosition(), ILOG_ERROR, Read(), and SetPosition(). Referenced by NativeTypeRead(). 00292 { 00293 String fs = NativeTypeFormat<NativeType>(0); 00294 char buf[1024]; 00295 PositionType start = GetPosition(); 00296 Int64 nrRead = Read(buf, 1024); // does SetPosition 00297 Int64 i = 0; 00298 while ((buf[i] != ' ') && (i < nrRead)) 00299 i++; 00300 if(nrRead == 0) 00301 ILOG_ERROR("DoNativeTypeRead read 0 bytes") 00302 sscanf(buf, fs.c_str(), ptr); 00303 SetPosition(start + i + 1); 00304 }
Here is the call graph for this function:
|