Definition at line 477 of file mainTable.cpp. References Impala::Core::Feature::FeatureTableSet::ConcatTables(), Impala::Core::Feature::FeatureTableSet::Delete(), Impala::CmdOptions::GetArg(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_VAR, Impala::Core::Feature::FeatureTableSet::MakeFromFile(), Impala::StringToBool(), and Impala::Core::Table::Write(). Referenced by mainTable(). 00478 { 00479 typedef Core::Feature::FeatureDefinition FeatureDef; 00480 typedef Core::Feature::FeatureTable FeatureTable; 00481 typedef Core::Feature::FeatureTableSet FeatureTableSet; 00482 00483 ILOG_VAR(Impala.Application.Table.DoConcatFeatureTable); 00484 CmdOptions& options = CmdOptions::GetInstance(); 00485 String dir = options.GetArg(1); 00486 bool useName = StringToBool(options.GetArg(2)); 00487 FeatureDef resultDef(options.GetArg(3)); 00488 String srcDefs = options.GetArg(4); 00489 for (int i=5 ; i<options.GetNrArg() ; i++) 00490 srcDefs += ";" + options.GetArg(i); 00491 00492 Util::Database* db = &Util::Database::GetInstance(); 00493 FeatureTableSet* fSet = FeatureTableSet::MakeFromFile(dir, useName, srcDefs); 00494 FeatureTable* res = fSet->ConcatTables(resultDef); 00495 String fName = dir + "/"; 00496 if (useName) 00497 fName += resultDef.GetName() + "/"; 00498 fName += resultDef.AsString(); 00499 Core::Table::Write(res, fName, db, true); 00500 fSet->Delete(); 00501 delete fSet; 00502 delete res; 00503 }
Here is the call graph for this function:
|