Definition at line 552 of file mainTable.cpp. References Impala::CmdOptions::GetArg(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_VAR, Impala::Core::Table::Read(), and Impala::Core::Feature::FeatureTable::WritePlainAsciiFile(). Referenced by mainTable(). 00553 { 00554 typedef Core::Feature::FeatureTable FeatureTable; 00555 00556 ILOG_VAR(Impala.Application.Table.DoFeatureTableWriteAscii); 00557 CmdOptions& options = CmdOptions::GetInstance(); 00558 Util::Database* db = &Util::Database::GetInstance(); 00559 if (options.GetNrArg() < 3) 00560 { 00561 ILOG_ERROR("Need more arguments"); 00562 return; 00563 } 00564 String tabName = options.GetArg(1); 00565 String asciiName = options.GetArg(2); 00566 FeatureTable table(tabName); 00567 Core::Table::Read(&table, tabName, db); 00568 table.WritePlainAsciiFile(asciiName, db); 00569 }
Here is the call graph for this function:
|