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