OmniSciDB  c0231cc57d
 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 224 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().

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

+ Here is the caller graph for this function: