OmniSciDB
a5dc49c757
|
Functions | |
std::string | abs_path (const File_Namespace::GlobalFileMgr *global_file_mgr) |
std::string | run (const std::string &cmd, const std::string &chdir="", const bool log_failure=true) |
std::string | simple_file_cat (const std::string &archive_path, const std::string &file_name, const std::string &compression, const bool log_failure=true) |
std::string | get_table_schema (const std::string &archive_path, const std::string &table, const std::string &compression) |
void | update_or_drop_column_ids_in_page_headers (const boost::filesystem::path &path, const std::unordered_map< int, int > &column_ids_map, const int32_t table_epoch, const bool drop_not_update) |
void | update_or_drop_column_ids_in_table_files (const int32_t table_epoch, const std::string &temp_data_dir, const std::unordered_map< int, int > &column_ids_map, const bool drop_not_update) |
void | delete_old_symlinks (const std::string &table_data_dir) |
void | add_data_file_symlinks (const std::string &table_data_dir) |
void | rename_table_directories (const File_Namespace::GlobalFileMgr *global_file_mgr, const std::string &temp_data_dir, const std::vector< std::string > &target_paths, const std::string &name_prefix) |
std::unordered_map< int, int > | find_render_group_columns (const std::list< ColumnDescriptor > &src_columns, std::vector< std::string > &src_oldinfo_strs, const std::string &archive_path) |
void | drop_render_group_columns (const std::unordered_map< int, int > &render_group_column_ids, const std::string &archive_path, const std::string &temp_data_dir, const std::string &compression) |
Variables | |
auto | simple_file_closer = [](FILE* f) { std::fclose(f); } |
|
inline |
Definition at line 82 of file TableArchiver.cpp.
References File_Namespace::GlobalFileMgr::getBasePath().
Referenced by TableArchiver::dumpTable(), rename_table_directories(), and TableArchiver::restoreTable().
void anonymous_namespace{TableArchiver.cpp}::add_data_file_symlinks | ( | const std::string & | table_data_dir | ) |
Definition at line 322 of file TableArchiver.cpp.
References DATA_FILE_EXT, and File_Namespace::kLegacyDataFileExtension.
Referenced by rename_table_directories().
void anonymous_namespace{TableArchiver.cpp}::delete_old_symlinks | ( | const std::string & | table_data_dir | ) |
Definition at line 309 of file TableArchiver.cpp.
Referenced by rename_table_directories().
void anonymous_namespace{TableArchiver.cpp}::drop_render_group_columns | ( | const std::unordered_map< int, int > & | render_group_column_ids, |
const std::string & | archive_path, | ||
const std::string & | temp_data_dir, | ||
const std::string & | compression | ||
) |
Definition at line 420 of file TableArchiver.cpp.
References measure< TimeT >::execution(), simple_file_cat(), table_epoch_filename, update_or_drop_column_ids_in_table_files(), and VLOG.
Referenced by TableArchiver::restoreTable().
std::unordered_map<int, int> anonymous_namespace{TableArchiver.cpp}::find_render_group_columns | ( | const std::list< ColumnDescriptor > & | src_columns, |
std::vector< std::string > & | src_oldinfo_strs, | ||
const std::string & | archive_path | ||
) |
Definition at line 370 of file TableArchiver.cpp.
References logger::INFO, kMULTIPOLYGON, kPOLYGON, LOG, and split().
Referenced by TableArchiver::restoreTable().
|
inline |
Definition at line 182 of file TableArchiver.cpp.
References simple_file_cat(), and table_schema_filename.
Referenced by TableArchiver::restoreTable().
void anonymous_namespace{TableArchiver.cpp}::rename_table_directories | ( | const File_Namespace::GlobalFileMgr * | global_file_mgr, |
const std::string & | temp_data_dir, | ||
const std::vector< std::string > & | target_paths, | ||
const std::string & | name_prefix | ||
) |
Definition at line 341 of file TableArchiver.cpp.
References abs_path(), add_data_file_symlinks(), delete_old_symlinks(), and File_Namespace::FileMgr::renameAndSymlinkLegacyFiles().
Referenced by TableArchiver::restoreTable().
|
inline |
Definition at line 86 of file TableArchiver.cpp.
References logger::ERROR, report::error_code(), measure< TimeT >::execution(), LOG, to_lower(), to_string(), and VLOG.
|
inline |
Definition at line 159 of file TableArchiver.cpp.
References get_quoted_string(), ddl_utils::IMPORT, run, and ddl_utils::validate_allowed_file_path().
Referenced by drop_render_group_columns(), get_table_schema(), and TableArchiver::restoreTable().
void anonymous_namespace{TableArchiver.cpp}::update_or_drop_column_ids_in_page_headers | ( | const boost::filesystem::path & | path, |
const std::unordered_map< int, int > & | column_ids_map, | ||
const int32_t | table_epoch, | ||
const bool | drop_not_update | ||
) |
Definition at line 193 of file TableArchiver.cpp.
References DATA_FILE_EXT, heavyai::file_size(), heavyai::fopen(), File_Namespace::is_page_deleted_with_checkpoint(), simple_file_closer, split(), and to_string().
Referenced by update_or_drop_column_ids_in_table_files().
void anonymous_namespace{TableArchiver.cpp}::update_or_drop_column_ids_in_table_files | ( | const int32_t | table_epoch, |
const std::string & | temp_data_dir, | ||
const std::unordered_map< int, int > & | column_ids_map, | ||
const bool | drop_not_update | ||
) |
Definition at line 286 of file TableArchiver.cpp.
References ThreadController_NS::SimpleThreadController< FutureReturnType >::checkThreadsStatus(), cpu_threads(), ThreadController_NS::SimpleThreadController< FutureReturnType >::finish(), ThreadController_NS::SimpleThreadController< FutureReturnType >::startThread(), and update_or_drop_column_ids_in_page_headers().
Referenced by drop_render_group_columns(), and TableArchiver::restoreTable().
|
inline |
Definition at line 80 of file TableArchiver.cpp.
Referenced by TableArchiver::dumpTable(), and update_or_drop_column_ids_in_page_headers().