OmniSciDB  c1a53651b2
 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 38 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().

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

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

+ Here is the caller graph for this function: