OmniSciDB  a987f07e93
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
foreign_storage::anonymous_namespace{ForeignDataWrapperFactory.cpp} Namespace Reference

Functions

void set_header_option (OptionsMap &options, const import_export::ImportHeaderRow &has_header)
 

Function Documentation

void foreign_storage::anonymous_namespace{ForeignDataWrapperFactory.cpp}::set_header_option ( OptionsMap &  options,
const import_export::ImportHeaderRow has_header 
)

Definition at line 223 of file ForeignDataWrapperFactory.cpp.

References CHECK, foreign_storage::CsvFileBufferParser::HEADER_KEY, import_export::kAutoDetect, import_export::kHasHeader, and import_export::kNoHeader.

Referenced by foreign_storage::ForeignDataWrapperFactory::createForeignTableProxy().

224  {
225  switch (has_header) {
227  options[CsvFileBufferParser::HEADER_KEY] = "FALSE";
228  break;
231  options[CsvFileBufferParser::HEADER_KEY] = "TRUE";
232  break;
233  default:
234  CHECK(false);
235  }
236 }
#define CHECK(condition)
Definition: Logger.h:289

+ Here is the caller graph for this function: