Definition at line 532 of file mainTable.cpp. References Impala::CmdOptions::GetArg(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_VAR, Impala::Core::Feature::FeatureTable::ReadPlainAsciiFile(), and Impala::Core::Table::Write(). Referenced by mainTable(). 00533 { 00534 typedef Core::Feature::FeatureTable FeatureTable; 00535 00536 ILOG_VAR(Impala.Application.Table.DoFeatureTableReadAscii); 00537 CmdOptions& options = CmdOptions::GetInstance(); 00538 Util::Database* db = &Util::Database::GetInstance(); 00539 if (options.GetNrArg() < 3) 00540 { 00541 ILOG_ERROR("Need more arguments"); 00542 return; 00543 } 00544 String tabName = options.GetArg(1); 00545 String asciiName = options.GetArg(2); 00546 FeatureTable table(tabName); 00547 table.ReadPlainAsciiFile(asciiName, db); 00548 Core::Table::Write(&table, tabName, db, true); 00549 }
Here is the call graph for this function:
|