OmniSciDB
a5dc49c757
|
Functions | |
void | throw_fragment_id_out_of_bounds_error (const TableDescriptor *table, const int32_t fragment_id, const int32_t max_fragment_id) |
std::set< const ColumnDescriptor * > | get_columns (const ChunkToBufferMap &buffers, const Catalog_Namespace::Catalog &catalog, const int32_t table_id, const int fragment_id) |
bool | skip_metadata_scan (const ColumnDescriptor *column) |
void | throw_unexpected_number_of_items (const size_t num_expected, const size_t num_loaded, const std::string &item_type, const std::string &foreign_table_name) |
size_t | get_buffer_size (const import_export::CopyParams ©_params, const bool size_known, const size_t file_size) |
size_t | get_buffer_size (const FileRegions &file_regions) |
size_t | get_thread_count (const import_export::CopyParams ©_params, const bool size_known, const size_t file_size, const size_t buffer_size) |
size_t | get_thread_count (const import_export::CopyParams ©_params, const FileRegions &file_regions) |
void | resize_delete_buffer (AbstractBuffer *delete_buffer, const size_t chunk_element_count) |
bool | no_deferred_requests (MetadataScanMultiThreadingParams &multi_threading_params) |
bool | is_file_scan_finished (const FileReader *file_reader, MetadataScanMultiThreadingParams &multi_threading_params) |
foreign_storage::ForeignStorageCache * | get_cache_if_enabled (std::shared_ptr< Catalog_Namespace::Catalog > &catalog, const bool disable_cache) |
void | add_placeholder_metadata (const ColumnDescriptor *column, const ForeignTable *foreign_table, const int db_id, const size_t start_row, const size_t total_num_rows, std::map< ChunkKey, std::shared_ptr< ChunkMetadata >> &chunk_metadata_map) |
void | initialize_non_append_mode_scan (const std::map< ChunkKey, std::shared_ptr< ChunkMetadata >> &chunk_metadata_map, const std::map< int, FileRegions > &fragment_id_to_file_regions_map, const foreign_storage::OptionsMap &server_options, std::unique_ptr< FileReader > &file_reader, const std::string &file_path, const import_export::CopyParams ©_params, const shared::FilePathOptions &file_path_options, const std::optional< size_t > &max_file_count, const foreign_storage::ForeignTable *foreign_table, const foreign_storage::UserMapping *user_mapping, const foreign_storage::TextFileBufferParser &parser, std::function< std::string()> get_s3_key, size_t &num_rows, size_t &append_start_offset) |
void foreign_storage::anonymous_namespace{AbstractTextFileDataWrapper.cpp}::add_placeholder_metadata | ( | const ColumnDescriptor * | column, |
const ForeignTable * | foreign_table, | ||
const int | db_id, | ||
const size_t | start_row, | ||
const size_t | total_num_rows, | ||
std::map< ChunkKey, std::shared_ptr< ChunkMetadata >> & | chunk_metadata_map | ||
) |
Definition at line 1299 of file AbstractTextFileDataWrapper.cpp.
References CHUNK_KEY_FRAGMENT_IDX, ColumnDescriptor::columnId, ColumnDescriptor::columnType, foreign_storage::get_placeholder_metadata(), SQLTypeInfo::is_varlen_indeed(), TableDescriptor::maxFragRows, and TableDescriptor::tableId.
Referenced by foreign_storage::AbstractTextFileDataWrapper::populateChunkMetadata().
size_t foreign_storage::anonymous_namespace{AbstractTextFileDataWrapper.cpp}::get_buffer_size | ( | const import_export::CopyParams & | copy_params, |
const bool | size_known, | ||
const size_t | file_size | ||
) |
Gets the appropriate buffer size to be used when processing file(s).
Definition at line 264 of file AbstractTextFileDataWrapper.cpp.
References import_export::CopyParams::buffer_size.
Referenced by foreign_storage::AbstractTextFileDataWrapper::iterativeFileScan(), foreign_storage::AbstractTextFileDataWrapper::populateChunkMetadata(), and foreign_storage::AbstractTextFileDataWrapper::populateChunks().
size_t foreign_storage::anonymous_namespace{AbstractTextFileDataWrapper.cpp}::get_buffer_size | ( | const FileRegions & | file_regions | ) |
foreign_storage::ForeignStorageCache* foreign_storage::anonymous_namespace{AbstractTextFileDataWrapper.cpp}::get_cache_if_enabled | ( | std::shared_ptr< Catalog_Namespace::Catalog > & | catalog, |
const bool | disable_cache | ||
) |
Definition at line 593 of file AbstractTextFileDataWrapper.cpp.
Referenced by foreign_storage::cache_blocks().
std::set<const ColumnDescriptor*> foreign_storage::anonymous_namespace{AbstractTextFileDataWrapper.cpp}::get_columns | ( | const ChunkToBufferMap & | buffers, |
const Catalog_Namespace::Catalog & | catalog, | ||
const int32_t | table_id, | ||
const int | fragment_id | ||
) |
Definition at line 83 of file AbstractTextFileDataWrapper.cpp.
References CHECK, CHECK_EQ, CHUNK_KEY_COLUMN_IDX, CHUNK_KEY_FRAGMENT_IDX, and Catalog_Namespace::Catalog::getMetadataForColumn().
Referenced by foreign_storage::AbstractTextFileDataWrapper::populateChunkBuffers().
size_t foreign_storage::anonymous_namespace{AbstractTextFileDataWrapper.cpp}::get_thread_count | ( | const import_export::CopyParams & | copy_params, |
const bool | size_known, | ||
const size_t | file_size, | ||
const size_t | buffer_size | ||
) |
Gets the appropriate number of threads to be used for concurrent processing within the data wrapper.
Definition at line 287 of file AbstractTextFileDataWrapper.cpp.
References CHECK_GT, and import_export::CopyParams::threads.
Referenced by foreign_storage::AbstractTextFileDataWrapper::iterativeFileScan(), foreign_storage::AbstractTextFileDataWrapper::populateChunkMetadata(), and foreign_storage::AbstractTextFileDataWrapper::populateChunks().
size_t foreign_storage::anonymous_namespace{AbstractTextFileDataWrapper.cpp}::get_thread_count | ( | const import_export::CopyParams & | copy_params, |
const FileRegions & | file_regions | ||
) |
Definition at line 305 of file AbstractTextFileDataWrapper.cpp.
References CHECK_GT, and import_export::CopyParams::threads.
void foreign_storage::anonymous_namespace{AbstractTextFileDataWrapper.cpp}::initialize_non_append_mode_scan | ( | const std::map< ChunkKey, std::shared_ptr< ChunkMetadata >> & | chunk_metadata_map, |
const std::map< int, FileRegions > & | fragment_id_to_file_regions_map, | ||
const foreign_storage::OptionsMap & | server_options, | ||
std::unique_ptr< FileReader > & | file_reader, | ||
const std::string & | file_path, | ||
const import_export::CopyParams & | copy_params, | ||
const shared::FilePathOptions & | file_path_options, | ||
const std::optional< size_t > & | max_file_count, | ||
const foreign_storage::ForeignTable * | foreign_table, | ||
const foreign_storage::UserMapping * | user_mapping, | ||
const foreign_storage::TextFileBufferParser & | parser, | ||
std::function< std::string()> | get_s3_key, | ||
size_t & | num_rows, | ||
size_t & | append_start_offset | ||
) |
Definition at line 1329 of file AbstractTextFileDataWrapper.cpp.
References CHECK, foreign_storage::AbstractFileStorageDataWrapper::LOCAL_FILE_STORAGE_TYPE, foreign_storage::AbstractFileStorageDataWrapper::STORAGE_TYPE_KEY, UNREACHABLE, and foreign_storage::TextFileBufferParser::validateFiles().
Referenced by foreign_storage::AbstractTextFileDataWrapper::iterativeFileScan(), and foreign_storage::AbstractTextFileDataWrapper::populateChunkMetadata().
bool foreign_storage::anonymous_namespace{AbstractTextFileDataWrapper.cpp}::is_file_scan_finished | ( | const FileReader * | file_reader, |
MetadataScanMultiThreadingParams & | multi_threading_params | ||
) |
Definition at line 331 of file AbstractTextFileDataWrapper.cpp.
References CHECK, foreign_storage::FileReader::isScanFinished(), and no_deferred_requests().
Referenced by foreign_storage::AbstractTextFileDataWrapper::iterativeFileScan(), and foreign_storage::AbstractTextFileDataWrapper::populateChunks().
bool foreign_storage::anonymous_namespace{AbstractTextFileDataWrapper.cpp}::no_deferred_requests | ( | MetadataScanMultiThreadingParams & | multi_threading_params | ) |
Definition at line 325 of file AbstractTextFileDataWrapper.cpp.
References foreign_storage::MetadataScanMultiThreadingParams::deferred_requests, and foreign_storage::MetadataScanMultiThreadingParams::deferred_requests_mutex.
Referenced by foreign_storage::dispatch_scan_requests(), and is_file_scan_finished().
void foreign_storage::anonymous_namespace{AbstractTextFileDataWrapper.cpp}::resize_delete_buffer | ( | AbstractBuffer * | delete_buffer, |
const size_t | chunk_element_count | ||
) |
Definition at line 316 of file AbstractTextFileDataWrapper.cpp.
References Data_Namespace::AbstractBuffer::append(), and Data_Namespace::AbstractBuffer::size().
Referenced by foreign_storage::AbstractTextFileDataWrapper::populateChunks(), and foreign_storage::update_delete_buffer().
bool foreign_storage::anonymous_namespace{AbstractTextFileDataWrapper.cpp}::skip_metadata_scan | ( | const ColumnDescriptor * | column | ) |
Definition at line 98 of file AbstractTextFileDataWrapper.cpp.
References ColumnDescriptor::columnType, and SQLTypeInfo::is_dict_encoded_type().
Referenced by foreign_storage::AbstractTextFileDataWrapper::populateChunkMetadata(), and foreign_storage::AbstractTextFileDataWrapper::updateMetadata().
void foreign_storage::anonymous_namespace{AbstractTextFileDataWrapper.cpp}::throw_fragment_id_out_of_bounds_error | ( | const TableDescriptor * | table, |
const int32_t | fragment_id, | ||
const int32_t | max_fragment_id | ||
) |
Definition at line 73 of file AbstractTextFileDataWrapper.cpp.
References TableDescriptor::tableName, and to_string().
Referenced by foreign_storage::AbstractTextFileDataWrapper::populateChunks().
void foreign_storage::anonymous_namespace{AbstractTextFileDataWrapper.cpp}::throw_unexpected_number_of_items | ( | const size_t | num_expected, |
const size_t | num_loaded, | ||
const std::string & | item_type, | ||
const std::string & | foreign_table_name | ||
) |
Definition at line 196 of file AbstractTextFileDataWrapper.cpp.
References foreign_storage::throw_unexpected_number_of_items().