OmniSciDB
a5dc49c757
|
#include <ForeignDataImporter.h>
Public Member Functions | |
ForeignDataImporter (const std::string &file_path, const CopyParams ©_params, const TableDescriptor *table) | |
ImportStatus | import (const Catalog_Namespace::SessionInfo *session_info) override |
Public Member Functions inherited from import_export::AbstractImporter | |
virtual | ~AbstractImporter ()=default |
Static Public Member Functions | |
static void | setDefaultImportPath (const std::string &base_path) |
Static Public Attributes | |
static int32_t | proxy_foreign_table_fragment_size_ = 0 |
Protected Attributes | |
std::unique_ptr < Fragmenter_Namespace::InsertDataLoader::InsertConnector > | connector_ |
Private Member Functions | |
void | finalize (const Catalog_Namespace::SessionInfo &parent_session_info, ImportStatus &import_status, const std::vector< std::pair< const ColumnDescriptor *, StringDictionary * >> &string_dictionaries) |
void | finalize (const Catalog_Namespace::SessionInfo &parent_session_info, ImportStatus &import_status, const int32_t table_id) |
ImportStatus | importGeneral (const Catalog_Namespace::SessionInfo *session_info) |
ImportStatus | importGeneral (const Catalog_Namespace::SessionInfo *session_info, const std::string ©_from_source, const CopyParams ©_params) |
ImportStatus | importGeneralS3 (const Catalog_Namespace::SessionInfo *session_info) |
Private Attributes | |
std::string | copy_from_source_ |
CopyParams | copy_params_ |
const TableDescriptor * | table_ |
Static Private Attributes | |
static std::string | default_import_path_ |
Definition at line 26 of file ForeignDataImporter.h.
import_export::ForeignDataImporter::ForeignDataImporter | ( | const std::string & | file_path, |
const CopyParams & | copy_params, | ||
const TableDescriptor * | table | ||
) |
Definition at line 407 of file ForeignDataImporter.cpp.
References connector_.
|
private |
Definition at line 414 of file ForeignDataImporter.cpp.
References connector_, DEBUG_TIMER, Data_Namespace::DISK_LEVEL, logger::ERROR, import_export::ImportStatus::load_failed, import_export::ImportStatus::load_msg, LOG, TableDescriptor::persistenceLevel, table_, and TableDescriptor::tableId.
Referenced by finalize(), and importGeneral().
|
private |
Definition at line 442 of file ForeignDataImporter.cpp.
References finalize(), Catalog_Namespace::Catalog::getAllColumnMetadataForTable(), and Catalog_Namespace::SessionInfo::getCatalog().
|
overridevirtual |
Implements import_export::AbstractImporter.
Definition at line 931 of file ForeignDataImporter.cpp.
References importGeneral(), importGeneralS3(), and shared::is_s3_uri().
|
private |
Definition at line 587 of file ForeignDataImporter.cpp.
References copy_from_source_, and copy_params_.
Referenced by import(), and importGeneralS3().
|
private |
Definition at line 514 of file ForeignDataImporter.cpp.
References CHECK, CHECK_GE, CHUNK_KEY_FRAGMENT_IDX, connector_, foreign_storage::create_proxy_fsi_objects(), foreign_storage::ForeignDataWrapperFactory::createForGeneralImport(), finalize(), Catalog_Namespace::SessionInfo::get_currentUser(), import_export::anonymous_namespace{ForeignDataImporter.cpp}::get_proxy_foreign_table_fragment_size(), Catalog_Namespace::SessionInfo::getCatalog(), anonymous_namespace{ForeignDataImporter.cpp}::import_foreign_data(), logger::INFO, foreign_storage::is_valid_source_type(), LOG, import_export::CopyParams::max_import_batch_row_count, anonymous_namespace{ForeignDataImporter.cpp}::metadata_scan(), table_, TableDescriptor::tableId, TableDescriptor::tableName, TableDescriptor::userId, and anonymous_namespace{ForeignDataImporter.cpp}::validate_copy_params().
|
private |
Definition at line 597 of file ForeignDataImporter.cpp.
References threading_serial::async(), CHECK, copy_from_source_, copy_params_, foreign_storage::create_futures_for_workers(), default_import_path_, import_export::CopyParams::file_sort_order_by, import_export::CopyParams::file_sort_regex, importGeneral(), gpu_enabled::iota(), shared::is_s3_uri(), import_export::kDelimitedFile, import_export::kParquetFile, import_export::kRegexParsedFile, import_export::ImportStatus::load_failed, import_export::CopyParams::plain_text, import_export::CopyParams::regex_path_filter, import_export::CopyParams::s3_access_key, import_export::CopyParams::s3_endpoint, import_export::CopyParams::s3_max_concurrent_downloads, import_export::CopyParams::s3_region, import_export::CopyParams::s3_secret_key, import_export::CopyParams::s3_session_token, import_export::Importer::set_import_status(), import_export::CopyParams::source_type, to_string(), and shared::validate_sort_options().
Referenced by import().
|
static |
Definition at line 592 of file ForeignDataImporter.cpp.
References default_import_path_, and shared::kDefaultImportDirName.
Referenced by CommandLineOptions::validate().
|
protected |
Definition at line 43 of file ForeignDataImporter.h.
Referenced by finalize(), ForeignDataImporter(), and importGeneral().
|
private |
Definition at line 66 of file ForeignDataImporter.h.
Referenced by importGeneral(), and importGeneralS3().
|
private |
Definition at line 67 of file ForeignDataImporter.h.
Referenced by importGeneral(), and importGeneralS3().
|
inlinestaticprivate |
Definition at line 69 of file ForeignDataImporter.h.
Referenced by importGeneralS3(), and setDefaultImportPath().
|
static |
Definition at line 40 of file ForeignDataImporter.h.
Referenced by import_export::anonymous_namespace{ForeignDataImporter.cpp}::get_proxy_foreign_table_fragment_size().
|
private |
Definition at line 68 of file ForeignDataImporter.h.
Referenced by finalize(), and importGeneral().