Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Core::Column::Write ( ColumnTem< String > *  col,
int  nrElem,
Util::IOBuffer *  buf,
bool  binary 
) [inline]

Definition at line 96 of file Write.h.

References Impala::Core::Column::ColumnTem< ElemT >::GetData(), Impala::MakeString(), Impala::Util::IOBuffer::Puts(), and Impala::Util::IOBuffer::Valid().

00097 {
00098     if (! (buf && buf->Valid()))
00099     {
00100         return;
00101     }
00102     String* data = col->GetData();
00103     int byteSize = nrElem;  // count newlines
00104     for (int i=0 ; i<nrElem ; i++) byteSize += data[i].size();
00105     buf->Puts("nr strings : " + MakeString(nrElem) + " " + 
00106                                 MakeString(byteSize));
00107     for (int i=0 ; i<nrElem ; i++)
00108         //fprintf(f.Fp(), "%s\n", data[i].c_str());
00109         buf->Puts(data[i]);
00110 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:18:52 2011 for ImpalaSrc by  doxygen 1.5.1