OmniSciDB
a5dc49c757
|
#include <Importer.h>
Public Member Functions | |
DataStreamSink () | |
DataStreamSink (const CopyParams ©_params, const std::string file_path) | |
virtual | ~DataStreamSink () |
virtual ImportStatus | importDelimited (const std::string &file_path, const bool decompressed, const Catalog_Namespace::SessionInfo *session_info)=0 |
const CopyParams & | get_copy_params () const |
void | import_compressed (std::vector< std::string > &file_paths, const Catalog_Namespace::SessionInfo *session_info) |
Protected Member Functions | |
ImportStatus | archivePlumber (const Catalog_Namespace::SessionInfo *session_info) |
Protected Attributes | |
CopyParams | copy_params |
const std::string | file_path |
FILE * | p_file = nullptr |
ImportStatus | import_status_ |
heavyai::shared_mutex | import_mutex_ |
size_t | total_file_size {0} |
std::vector< size_t > | file_offsets |
std::mutex | file_offsets_mutex |
Definition at line 693 of file Importer.h.
|
inline |
Definition at line 695 of file Importer.h.
|
inline |
Definition at line 696 of file Importer.h.
|
inlinevirtual |
Definition at line 698 of file Importer.h.
|
protected |
Definition at line 3560 of file Importer.cpp.
References copy_params, file_path, import_export::CopyParams::file_sort_order_by, import_export::CopyParams::file_sort_regex, get_filesize(), import_compressed(), import_status_, import_export::kParquetFile, shared::local_glob_filter_sort_files(), import_export::CopyParams::regex_path_filter, import_export::CopyParams::source_type, total_file_size, and shared::validate_sort_options().
Referenced by import_export::Importer::import(), and import_export::Detector::read_file().
|
inline |
Definition at line 710 of file Importer.h.
References copy_params.
Referenced by DBHandler::detect_column_types().
void import_export::DataStreamSink::import_compressed | ( | std::vector< std::string > & | file_paths, |
const Catalog_Namespace::SessionInfo * | session_info | ||
) |
Definition at line 4086 of file Importer.cpp.
References heavyai::close(), file_offsets, file_offsets_mutex, import_mutex_, import_status_, importDelimited(), import_export::kImportRowLimit, import_export::kNoHeader, import_export::ImportStatus::load_failed, LOG, p_file, Archive::parse_url(), import_export::ImportStatus::rows_completed, total_file_size, logger::WARNING, and File_Namespace::write().
Referenced by archivePlumber().
|
pure virtual |
Implemented in import_export::Importer, and import_export::Detector.
Referenced by import_compressed().
|
protected |
Definition at line 719 of file Importer.h.
Referenced by archivePlumber(), import_export::Detector::detect_row_delimiter(), import_export::Detector::find_best_sqltypes(), import_export::Detector::find_best_sqltypes_and_headers(), get_copy_params(), import_export::Importer::get_copy_params(), import_export::Detector::importDelimited(), heavydb.thrift.ttypes.TDetectResult::read(), heavydb.thrift.Heavy.detect_column_types_args::read(), heavydb.thrift.Heavy.import_table_args::read(), heavydb.thrift.Heavy.import_geo_table_args::read(), heavydb.thrift.Heavy.get_first_geo_file_in_archive_args::read(), heavydb.thrift.Heavy.get_all_files_in_archive_args::read(), heavydb.thrift.Heavy.get_layers_in_geo_file_args::read(), import_export::Detector::split_raw_data(), heavydb.thrift.ttypes.TDetectResult::write(), heavydb.thrift.Heavy.detect_column_types_args::write(), heavydb.thrift.Heavy.import_table_args::write(), heavydb.thrift.Heavy.import_geo_table_args::write(), heavydb.thrift.Heavy.get_first_geo_file_in_archive_args::write(), heavydb.thrift.Heavy.get_all_files_in_archive_args::write(), and heavydb.thrift.Heavy.get_layers_in_geo_file_args::write().
|
protected |
Definition at line 725 of file Importer.h.
Referenced by import_compressed(), and import_export::Importer::importDelimited().
|
protected |
Definition at line 726 of file Importer.h.
Referenced by import_compressed(), and import_export::Importer::importDelimited().
|
protected |
Definition at line 720 of file Importer.h.
Referenced by archivePlumber(), and import_export::Importer::Importer().
|
protected |
Definition at line 723 of file Importer.h.
Referenced by import_export::Importer::checkpoint(), import_compressed(), import_export::Detector::importDelimited(), import_export::Importer::importDelimited(), import_export::Importer::importGDALGeo(), and import_export::Importer::load().
|
protected |
Definition at line 722 of file Importer.h.
Referenced by archivePlumber(), import_export::Importer::checkpoint(), import_compressed(), import_export::Detector::importDelimited(), import_export::Importer::importDelimited(), import_export::Importer::importGDALGeo(), import_export::Importer::importGDALRaster(), and import_export::Importer::load().
|
protected |
Definition at line 721 of file Importer.h.
Referenced by import_compressed(), import_export::Detector::importDelimited(), import_export::Importer::importDelimited(), import_export::Importer::Importer(), and import_export::Importer::~Importer().
|
protected |
Definition at line 724 of file Importer.h.
Referenced by archivePlumber(), import_compressed(), and import_export::Importer::importDelimited().