OmniSciDB
bf83d84833
|
Functions | |
std::string | abs_path (const File_Namespace::GlobalFileMgr *global_file_mgr) |
std::string | run (const std::string &cmd, const std::string &chdir="") |
std::string | simple_file_cat (const std::string &archive_path, const std::string &file_name, const std::string &compression) |
std::string | get_table_schema (const std::string &archive_path, const std::string &table, const std::string &compression) |
void | adjust_altered_table_files (const std::string &temp_data_dir, const std::unordered_map< int, int > &column_ids_map) |
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) |
Variables | |
auto | simple_file_closer = [](FILE* f) { std::fclose(f); } |
|
inline |
Definition at line 69 of file TableArchiver.cpp.
References File_Namespace::GlobalFileMgr::getBasePath().
Referenced by TableArchiver::dumpTable(), rename_table_directories(), and TableArchiver::restoreTable().
void anonymous_namespace{TableArchiver.cpp}::adjust_altered_table_files | ( | const std::string & | temp_data_dir, |
const std::unordered_map< int, int > & | column_ids_map | ||
) |
Definition at line 160 of file TableArchiver.cpp.
References CHECK, ThreadController_NS::SimpleThreadController< FutureReturnType >::checkThreadsStatus(), cpu_threads(), omnisci::file_size(), ThreadController_NS::SimpleThreadController< FutureReturnType >::finish(), omnisci::fopen(), MAPD_FILE_EXT, simple_file_closer, split(), ThreadController_NS::SimpleThreadController< FutureReturnType >::startThread(), and to_string().
Referenced by TableArchiver::restoreTable().
|
inline |
Definition at line 148 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 219 of file TableArchiver.cpp.
References abs_path().
Referenced by TableArchiver::restoreTable().
|
inline |
Definition at line 73 of file TableArchiver.cpp.
References logger::ERROR, measure< TimeT >::execution(), LOG, to_string(), and VLOG.
|
inline |
Definition at line 127 of file TableArchiver.cpp.
References get_quoted_string(), ddl_utils::IMPORT, run, and ddl_utils::validate_allowed_file_path().
Referenced by get_table_schema(), and TableArchiver::restoreTable().
|
inline |
Definition at line 67 of file TableArchiver.cpp.
Referenced by adjust_altered_table_files(), and TableArchiver::dumpTable().