OmniSciDB  ca0c39ec8f
 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 37 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().

37  {
38  std::string data_wrapper_type;
40  data_wrapper_type = foreign_storage::DataWrapperType::CSV;
41  } else if (copy_params.source_type == import_export::SourceType::kRegexParsedFile) {
43 #ifdef ENABLE_IMPORT_PARQUET
44  } else if (copy_params.source_type == import_export::SourceType::kParquetFile) {
46 #endif
47  } else {
48  UNREACHABLE();
49  }
50  return data_wrapper_type;
51 }
static constexpr char const * REGEX_PARSER
#define UNREACHABLE()
Definition: Logger.h:266
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 105 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().

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

+ Here is the caller graph for this function: