OmniSciDB
a667adc9c8
|
Classes | |
struct | ForceDisconnect |
struct | ProjectionTokensForCompletion |
Functions | |
SessionMap::iterator | get_session_from_map (const TSessionId &session, SessionMap &session_map) |
ProjectionTokensForCompletion | extract_projection_tokens_for_completion (const std::string &sql) |
std::string | dump_table_col_names (const std::map< std::string, std::vector< std::string >> &table_col_names) |
void | check_table_not_sharded (const TableDescriptor *td) |
void | check_valid_column_names (const std::list< const ColumnDescriptor * > &descs, const std::vector< std::string > &column_names) |
std::vector< int > | column_ids_by_names (const std::list< const ColumnDescriptor * > &descs, const std::vector< std::string > &column_names) |
size_t | get_column_size (const TColumn &column) |
RecordBatchVector | loadArrowStream (const std::string &stream) |
void | add_vsi_network_prefix (std::string &path) |
void | add_vsi_geo_prefix (std::string &path) |
void | add_vsi_archive_prefix (std::string &path) |
std::string | remove_vsi_prefixes (const std::string &path_in) |
bool | path_is_relative (const std::string &path) |
bool | path_has_valid_filename (const std::string &path) |
bool | is_a_supported_geo_file (const std::string &path, bool include_gz) |
bool | is_a_supported_archive_file (const std::string &path) |
std::string | find_first_geo_file_in_archive (const std::string &archive_path, const import_export::CopyParams ©_params) |
bool | is_local_file (const std::string &file_path) |
void | validate_import_file_path_if_local (const std::string &file_path) |
bool | TTypeInfo_IsGeo (const TDatumType::type &t) |
void anonymous_namespace{DBHandler.cpp}::add_vsi_archive_prefix | ( | std::string & | path | ) |
Definition at line 3571 of file DBHandler.cpp.
Referenced by DBHandler::detect_column_types(), DBHandler::get_all_files_in_archive(), DBHandler::get_first_geo_file_in_archive(), DBHandler::get_layers_in_geo_file(), and DBHandler::import_geo_table().
void anonymous_namespace{DBHandler.cpp}::add_vsi_geo_prefix | ( | std::string & | path | ) |
Definition at line 3564 of file DBHandler.cpp.
Referenced by DBHandler::detect_column_types(), DBHandler::get_layers_in_geo_file(), and DBHandler::import_geo_table().
void anonymous_namespace{DBHandler.cpp}::add_vsi_network_prefix | ( | std::string & | path | ) |
Definition at line 3542 of file DBHandler.cpp.
References Geospatial::GDAL::supportsNetworkFileAccess(), and THROW_MAPD_EXCEPTION.
Referenced by DBHandler::detect_column_types(), DBHandler::get_all_files_in_archive(), DBHandler::get_first_geo_file_in_archive(), DBHandler::get_layers_in_geo_file(), and DBHandler::import_geo_table().
void anonymous_namespace{DBHandler.cpp}::check_table_not_sharded | ( | const TableDescriptor * | td | ) |
Definition at line 2709 of file DBHandler.cpp.
References TableDescriptor::nShards.
Referenced by DBHandler::prepare_loader_generic().
void anonymous_namespace{DBHandler.cpp}::check_valid_column_names | ( | const std::list< const ColumnDescriptor * > & | descs, |
const std::vector< std::string > & | column_names | ||
) |
Definition at line 2715 of file DBHandler.cpp.
References setup::name, THROW_MAPD_EXCEPTION, and to_lower().
Referenced by DBHandler::prepare_loader_generic().
std::vector<int> anonymous_namespace{DBHandler.cpp}::column_ids_by_names | ( | const std::list< const ColumnDescriptor * > & | descs, |
const std::vector< std::string > & | column_names | ||
) |
Definition at line 2741 of file DBHandler.cpp.
References generate_TableFunctionsFactory_init::j, THROW_MAPD_EXCEPTION, and to_lower().
Referenced by DBHandler::load_table(), DBHandler::load_table_binary(), DBHandler::load_table_binary_arrow(), and DBHandler::load_table_binary_columnar_internal().
std::string anonymous_namespace{DBHandler.cpp}::dump_table_col_names | ( | const std::map< std::string, std::vector< std::string >> & | table_col_names | ) |
Definition at line 2143 of file DBHandler.cpp.
Referenced by DBHandler::get_result_row_for_pixel().
ProjectionTokensForCompletion anonymous_namespace{DBHandler.cpp}::extract_projection_tokens_for_completion | ( | const std::string & | sql | ) |
Definition at line 1545 of file DBHandler.cpp.
References split(), and to_upper().
Referenced by DBHandler::get_completion_hints().
std::string anonymous_namespace{DBHandler.cpp}::find_first_geo_file_in_archive | ( | const std::string & | archive_path, |
const import_export::CopyParams & | copy_params | ||
) |
Definition at line 3652 of file DBHandler.cpp.
References import_export::Importer::gdalGetAllFilesInArchive(), logger::INFO, is_a_supported_geo_file(), LOG, and remove_vsi_prefixes().
Referenced by DBHandler::detect_column_types(), DBHandler::get_first_geo_file_in_archive(), DBHandler::get_layers_in_geo_file(), and DBHandler::import_geo_table().
size_t anonymous_namespace{DBHandler.cpp}::get_column_size | ( | const TColumn & | column | ) |
Definition at line 2901 of file DBHandler.cpp.
Referenced by DBHandler::load_table_binary_columnar_internal().
SessionMap::iterator anonymous_namespace{DBHandler.cpp}::get_session_from_map | ( | const TSessionId & | session, |
SessionMap & | session_map | ||
) |
Definition at line 123 of file DBHandler.cpp.
References THROW_MAPD_EXCEPTION.
Referenced by DBHandler::expire_idle_sessions_unsafe(), and DBHandler::get_session_it_unsafe().
bool anonymous_namespace{DBHandler.cpp}::is_a_supported_archive_file | ( | const std::string & | path | ) |
Definition at line 3639 of file DBHandler.cpp.
References path_has_valid_filename().
Referenced by DBHandler::detect_column_types(), DBHandler::get_all_files_in_archive(), DBHandler::get_first_geo_file_in_archive(), DBHandler::get_layers_in_geo_file(), and DBHandler::import_geo_table().
bool anonymous_namespace{DBHandler.cpp}::is_a_supported_geo_file | ( | const std::string & | path, |
bool | include_gz | ||
) |
Definition at line 3621 of file DBHandler.cpp.
References path_has_valid_filename().
Referenced by DBHandler::detect_column_types(), find_first_geo_file_in_archive(), DBHandler::get_layers_in_geo_file(), and DBHandler::import_geo_table().
bool anonymous_namespace{DBHandler.cpp}::is_local_file | ( | const std::string & | file_path | ) |
Definition at line 3687 of file DBHandler.cpp.
Referenced by validate_import_file_path_if_local().
RecordBatchVector anonymous_namespace{DBHandler.cpp}::loadArrowStream | ( | const std::string & | stream | ) |
Definition at line 3128 of file DBHandler.cpp.
References ARROW_ASSIGN_OR_THROW, ARROW_THRIFT_THROW_NOT_OK, logger::ERROR, and LOG.
Referenced by DBHandler::load_table_binary_arrow().
bool anonymous_namespace{DBHandler.cpp}::path_has_valid_filename | ( | const std::string & | path | ) |
Definition at line 3613 of file DBHandler.cpp.
References logger::filename().
Referenced by is_a_supported_archive_file(), and is_a_supported_geo_file().
bool anonymous_namespace{DBHandler.cpp}::path_is_relative | ( | const std::string & | path | ) |
Definition at line 3605 of file DBHandler.cpp.
Referenced by DBHandler::detect_column_types(), DBHandler::get_all_files_in_archive(), DBHandler::get_first_geo_file_in_archive(), DBHandler::get_layers_in_geo_file(), and DBHandler::import_geo_table().
std::string anonymous_namespace{DBHandler.cpp}::remove_vsi_prefixes | ( | const std::string & | path_in | ) |
Definition at line 3583 of file DBHandler.cpp.
Referenced by find_first_geo_file_in_archive().
bool anonymous_namespace{DBHandler.cpp}::TTypeInfo_IsGeo | ( | const TDatumType::type & | t | ) |
Definition at line 4505 of file DBHandler.cpp.
References LINESTRING, MULTIPOLYGON, POINT, and POLYGON.
Referenced by DBHandler::import_geo_table().
void anonymous_namespace{DBHandler.cpp}::validate_import_file_path_if_local | ( | const std::string & | file_path | ) |
Definition at line 3693 of file DBHandler.cpp.
References ddl_utils::IMPORT, is_local_file(), and ddl_utils::validate_allowed_file_path().
Referenced by DBHandler::detect_column_types(), DBHandler::get_all_files_in_archive(), DBHandler::get_first_geo_file_in_archive(), DBHandler::get_layers_in_geo_file(), DBHandler::import_geo_table(), and DBHandler::import_table().