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

void Impala::Application::Table::DoVxsTable (  ) 

Definition at line 97 of file mainTable.cpp.

References Impala::Core::Column::CopyUnique(), Impala::CmdOptions::GetArg(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::GetColumn3(), Impala::CmdOptions::GetInstance(), ILOG_INFO, ILOG_VAR, Impala::Core::Column::MakeFilterEqual(), Impala::Core::Table::TableVxs::ReadVxsFile(), Impala::Core::Table::Select(), and Impala::Core::Table::Table::Size().

Referenced by mainTable().

00098 {
00099     ILOG_VAR(Impala.Application.Table.DoVxsTable);
00100     CmdOptions& options = CmdOptions::GetInstance();
00101     String fName = options.GetArg(1);
00102     Core::Table::TableVxs table;
00103     table.ReadVxsFile(fName);
00104     //table.Dump();
00105 
00106     Core::Column::ColumnTem<String> concept(table.Size());
00107     int nr = Core::Column::CopyUnique(&concept, table.GetColumn3(), 0, 0,
00108                                       table.Size());
00109     concept.Reserve(nr, true);
00110 
00111     for (int i=0 ; i<concept.Capacity() ; i++)
00112     {
00113         ILOG_INFO("concept: " << concept.Get(i));
00114         bool* filter = 0;
00115         Core::Column::MakeFilterEqual(filter, table.GetColumn3(), false,
00116                                       concept.Get(i));
00117         Core::Table::TableVxs t;
00118         Core::Table::Select(&t, &table, filter, true);
00119         //t.Dump();
00120         t.WriteVxsFile(concept.Get(i) + ".vxs");
00121         delete filter;
00122         ILOG_INFO("  size: " << t.Size());
00123     }
00124 }

Here is the call graph for this function:


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