OmniSciDB  cde582ebc3
 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 204 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().

205  {
206  switch (has_header) {
208  options[CsvFileBufferParser::HEADER_KEY] = "FALSE";
209  break;
212  options[CsvFileBufferParser::HEADER_KEY] = "TRUE";
213  break;
214  default:
215  CHECK(false);
216  }
217 }
#define CHECK(condition)
Definition: Logger.h:222

+ Here is the caller graph for this function: