OmniSciDB
a5dc49c757
|
Classes | |
struct | FragmentBuffers |
Functions | |
ChunkMetadataVector | metadata_scan (foreign_storage::ForeignDataWrapper *data_wrapper, foreign_storage::ForeignTable *foreign_table) |
std::string | get_import_id (const import_export::CopyParams ©_params, const std::string ©_from_source) |
void | validate_copy_params (const import_export::CopyParams ©_params) |
std::unique_ptr< FragmentBuffers > | create_fragment_buffers (const int32_t fragment_id, Catalog_Namespace::Catalog &catalog, const TableDescriptor *table) |
void | load_foreign_data_buffers (Fragmenter_Namespace::InsertDataLoader::InsertConnector *connector, Catalog_Namespace::Catalog &catalog, const TableDescriptor *table, const Catalog_Namespace::SessionInfo *session_info, const import_export::CopyParams ©_params, const std::string ©_from_source, import_export::ImportStatus &import_status, std::mutex &communication_mutex, bool &continue_loading, bool &load_failed, bool &data_wrapper_error_occured, std::condition_variable &buffers_to_load_condition, std::list< std::unique_ptr< FragmentBuffers >> &buffers_to_load) |
import_export::ImportStatus | import_foreign_data (const int32_t max_fragment_id, Fragmenter_Namespace::InsertDataLoader::InsertConnector *connector, Catalog_Namespace::Catalog &catalog, const TableDescriptor *table, foreign_storage::ForeignDataWrapper *data_wrapper, const Catalog_Namespace::SessionInfo *session_info, const import_export::CopyParams ©_params, const std::string ©_from_source, const size_t maximum_num_fragments_buffered) |
std::unique_ptr<FragmentBuffers> anonymous_namespace{ForeignDataImporter.cpp}::create_fragment_buffers | ( | const int32_t | fragment_id, |
Catalog_Namespace::Catalog & | catalog, | ||
const TableDescriptor * | table | ||
) |
Definition at line 94 of file ForeignDataImporter.cpp.
References shared::get_from_map(), Catalog_Namespace::Catalog::getAllColumnMetadataForTable(), Catalog_Namespace::Catalog::getDatabaseId(), and TableDescriptor::tableId.
Referenced by import_foreign_data().
std::string anonymous_namespace{ForeignDataImporter.cpp}::get_import_id | ( | const import_export::CopyParams & | copy_params, |
const std::string & | copy_from_source | ||
) |
Definition at line 67 of file ForeignDataImporter.cpp.
References import_export::kDelimitedFile, import_export::kParquetFile, import_export::kRegexParsedFile, and import_export::CopyParams::source_type.
Referenced by load_foreign_data_buffers().
import_export::ImportStatus anonymous_namespace{ForeignDataImporter.cpp}::import_foreign_data | ( | const int32_t | max_fragment_id, |
Fragmenter_Namespace::InsertDataLoader::InsertConnector * | connector, | ||
Catalog_Namespace::Catalog & | catalog, | ||
const TableDescriptor * | table, | ||
foreign_storage::ForeignDataWrapper * | data_wrapper, | ||
const Catalog_Namespace::SessionInfo * | session_info, | ||
const import_export::CopyParams & | copy_params, | ||
const std::string & | copy_from_source, | ||
const size_t | maximum_num_fragments_buffered | ||
) |
Definition at line 242 of file ForeignDataImporter.cpp.
References threading_serial::async(), create_fragment_buffers(), load_foreign_data_buffers(), and foreign_storage::ForeignDataWrapper::populateChunkBuffers().
Referenced by import_export::ForeignDataImporter::importGeneral().
void anonymous_namespace{ForeignDataImporter.cpp}::load_foreign_data_buffers | ( | Fragmenter_Namespace::InsertDataLoader::InsertConnector * | connector, |
Catalog_Namespace::Catalog & | catalog, | ||
const TableDescriptor * | table, | ||
const Catalog_Namespace::SessionInfo * | session_info, | ||
const import_export::CopyParams & | copy_params, | ||
const std::string & | copy_from_source, | ||
import_export::ImportStatus & | import_status, | ||
std::mutex & | communication_mutex, | ||
bool & | continue_loading, | ||
bool & | load_failed, | ||
bool & | data_wrapper_error_occured, | ||
std::condition_variable & | buffers_to_load_condition, | ||
std::list< std::unique_ptr< FragmentBuffers >> & | buffers_to_load | ||
) |
Definition at line 129 of file ForeignDataImporter.cpp.
References CHECK, CHECK_LE, CHUNK_KEY_COLUMN_IDX, CHUNK_KEY_TABLE_IDX, CHUNK_KEY_VARLEN_IDX, shared::get_from_map(), get_import_id(), Chunk_NS::Chunk::getChunk(), Catalog_Namespace::Catalog::getDatabaseId(), Catalog_Namespace::Catalog::getMetadataForColumn(), Fragmenter_Namespace::InsertDataLoader::insertChunks(), import_export::ImportStatus::load_failed, import_export::ImportStatus::load_msg, import_export::CopyParams::max_reject, import_export::ImportStatus::rows_completed, import_export::ImportStatus::rows_rejected, import_export::Importer::set_import_status(), and TableDescriptor::tableId.
Referenced by import_foreign_data().
ChunkMetadataVector anonymous_namespace{ForeignDataImporter.cpp}::metadata_scan | ( | foreign_storage::ForeignDataWrapper * | data_wrapper, |
foreign_storage::ForeignTable * | foreign_table | ||
) |
Definition at line 43 of file ForeignDataImporter.cpp.
References TableDescriptor::maxFragRows, foreign_storage::MetadataScanInfeasibleFragmentSizeException::min_feasible_fragment_size_, and foreign_storage::ForeignDataWrapper::populateChunkMetadata().
Referenced by import_export::ForeignDataImporter::importGeneral().
void anonymous_namespace{ForeignDataImporter.cpp}::validate_copy_params | ( | const import_export::CopyParams & | copy_params | ) |
Definition at line 81 of file ForeignDataImporter.cpp.
References import_export::kRegexParsedFile, import_export::CopyParams::source_type, and foreign_storage::validate_regex_parser_options().
Referenced by import_export::ForeignDataImporter::importGeneral().