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

template<class TableT>
void Impala::Core::Table::ReadOldHeader ( TableT *  table,
Util::IOBuffer *  buffer 
) [inline]

Definition at line 19 of file Read.h.

References ILOG_ERROR, ILOG_VAR, and Read().

Referenced by Read().

00020 {
00021     ILOG_VAR(Impala.Core.Table.Read);
00022     if (!table)
00023     {
00024         ILOG_ERROR("No table");
00025         return;
00026     }
00027     table->ReadColNames(buffer);
00028     Column::Read(table->GetColumn1(), buffer);
00029     int nr = table->GetColumn1()->Capacity();
00030     Column::Read(table->GetColumn2(), buffer);
00031     if (table->GetColumn2()->Valid() && (table->GetColumn2()->Capacity() != nr))
00032         ILOG_ERROR("col2 has different size than col1");
00033     Column::Read(table->GetColumn3(), buffer);
00034     if (table->GetColumn3()->Valid() && (table->GetColumn3()->Capacity() != nr))
00035         ILOG_ERROR("col3 has different size than col1");
00036     Column::Read(table->GetColumn4(), buffer);
00037     if (table->GetColumn4()->Valid() && (table->GetColumn4()->Capacity() != nr))
00038         ILOG_ERROR("col4 has different size than col1");
00039     Column::Read(table->GetColumn5(), buffer);
00040     if (table->GetColumn5()->Valid() && (table->GetColumn5()->Capacity() != nr))
00041         ILOG_ERROR("col5 has different size than col1");
00042     Column::Read(table->GetColumn6(), buffer);
00043     if (table->GetColumn6()->Valid() && (table->GetColumn6()->Capacity() != nr))
00044         ILOG_ERROR("col6 has different size than col1");
00045     Column::Read(table->GetColumn7(), buffer);
00046     if (table->GetColumn7()->Valid() && (table->GetColumn7()->Capacity() != nr))
00047         ILOG_ERROR("col7 has different size than col1");
00048     Column::Read(table->GetColumn8(), buffer);
00049     if (table->GetColumn8()->Valid() && (table->GetColumn8()->Capacity() != nr))
00050         ILOG_ERROR("col8 has different size than col1");
00051     Column::Read(table->GetColumn9(), buffer);
00052     if (table->GetColumn9()->Valid() && (table->GetColumn9()->Capacity() != nr))
00053         ILOG_ERROR("col9 has different size than col1");
00054     table->SetSize(nr);
00055 }

Here is the call graph for this function:


Generated on Fri Mar 19 11:19:21 2010 for ImpalaSrc by  doxygen 1.5.1