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

Functions

std::string get_data_wrapper_type (const import_export::CopyParams &copy_params)
 
bool is_valid_data_wrapper (const std::string &data_wrapper_type)
 

Function Documentation

std::string anonymous_namespace{ForeignDataWrapperFactory.cpp}::get_data_wrapper_type ( const import_export::CopyParams copy_params)

Definition at line 40 of file ForeignDataWrapperFactory.cpp.

References foreign_storage::DataWrapperType::CSV, import_export::kDelimitedFile, import_export::kParquetFile, import_export::kRegexParsedFile, foreign_storage::DataWrapperType::PARQUET, foreign_storage::DataWrapperType::REGEX_PARSER, import_export::CopyParams::source_type, and UNREACHABLE.

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

40  {
41  std::string data_wrapper_type;
43  data_wrapper_type = foreign_storage::DataWrapperType::CSV;
44  } else if (copy_params.source_type == import_export::SourceType::kRegexParsedFile) {
46 #ifdef ENABLE_IMPORT_PARQUET
47  } else if (copy_params.source_type == import_export::SourceType::kParquetFile) {
49 #endif
50  } else {
51  UNREACHABLE();
52  }
53  return data_wrapper_type;
54 }
static constexpr char const * REGEX_PARSER
#define UNREACHABLE()
Definition: Logger.h:338
import_export::SourceType source_type
Definition: CopyParams.h:57
static constexpr char const * CSV
static constexpr char const * PARQUET

+ Here is the caller graph for this function:

bool anonymous_namespace{ForeignDataWrapperFactory.cpp}::is_valid_data_wrapper ( const std::string &  data_wrapper_type)

Definition at line 103 of file ForeignDataWrapperFactory.cpp.

References foreign_storage::DataWrapperType::CSV, foreign_storage::DataWrapperType::PARQUET, and foreign_storage::DataWrapperType::REGEX_PARSER.

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

103  {
104  return
105 #ifdef ENABLE_IMPORT_PARQUET
106  data_wrapper_type == foreign_storage::DataWrapperType::PARQUET ||
107 #endif
108  data_wrapper_type == foreign_storage::DataWrapperType::CSV ||
110 }
static constexpr char const * REGEX_PARSER
static constexpr char const * CSV
static constexpr char const * PARQUET

+ Here is the caller graph for this function: