OmniSciDB
a5dc49c757
|
Functions | |
auto | table_json_filepath (const std::string &base_path, const std::string &db_name) |
std::map< int32_t, std::string > | get_user_id_to_user_name_map () |
std::string | get_user_name_from_id (int32_t id, const std::map< int32_t, std::string > &user_name_by_user_id) |
void | set_dict_key (ColumnDescriptor &cd) |
int64_t | get_next_refresh_time (const foreign_storage::ForeignTable &foreign_table) |
std::string | table_epochs_to_string (const std::vector< TableEpochInfo > &table_epochs) |
const ColumnDescriptor * | get_foreign_col (const Catalog &cat, const Parser::SharedDictionaryDef &shared_dict_def) |
void | replace_cached_table_name (std::map< std::string, int > &cachedTableMap, const std::string &curTableName, const std::string &newTableName, int tableId) |
int32_t | validate_and_get_user_id (const std::string &user_name) |
std::string | convert_object_owners_map_to_string (int32_t db_id, int32_t new_owner_id, const std::map< int32_t, std::vector< DBObject >> &old_owner_db_objects) |
void | add_db_object (const std::string &object_name, DBObjectType object_type, int32_t user_id, const AccessPrivileges &privileges, std::map< int32_t, std::vector< DBObject >> &db_objects) |
SQLTypeInfo | get_encoded_text_type () |
SQLTypeInfo | get_var_array_type (SQLTypes type) |
SQLTypeInfo | get_var_encoded_text_array_type () |
void | set_common_log_system_table_options (foreign_storage::ForeignTable &foreign_table) |
void | set_common_db_log_system_table_options (foreign_storage::ForeignTable &foreign_table) |
void | clear_cached_table_data (const Data_Namespace::DataMgr *data_mgr, int32_t db_id, int32_t table_id) |
void | drop_tables (Catalog &catalog, const std::vector< std::string > &table_names) |
std::string | get_checked_table_name (const Catalog *catalog, const ColumnDescriptor *cd) |
void Catalog_Namespace::anonymous_namespace{Catalog.cpp}::add_db_object | ( | const std::string & | object_name, |
DBObjectType | object_type, | ||
int32_t | user_id, | ||
const AccessPrivileges & | privileges, | ||
std::map< int32_t, std::vector< DBObject >> & | db_objects | ||
) |
Definition at line 6160 of file Catalog.cpp.
References DBObject::setPrivileges().
Referenced by Catalog_Namespace::Catalog::reassignOwners().
void Catalog_Namespace::anonymous_namespace{Catalog.cpp}::clear_cached_table_data | ( | const Data_Namespace::DataMgr * | data_mgr, |
int32_t | db_id, | ||
int32_t | table_id | ||
) |
Definition at line 6479 of file Catalog.cpp.
References foreign_storage::ForeignStorageCache::clearForTablePrefix(), PersistentStorageMgr::getDiskCache(), and Data_Namespace::DataMgr::getPersistentStorageMgr().
Referenced by drop_tables(), Catalog_Namespace::Catalog::initializeRequestLogsSystemTables(), Catalog_Namespace::Catalog::initializeServerLogsSystemTables(), Catalog_Namespace::Catalog::initializeWebServerAccessLogsSystemTables(), and Catalog_Namespace::Catalog::initializeWebServerLogsSystemTables().
std::string Catalog_Namespace::anonymous_namespace{Catalog.cpp}::convert_object_owners_map_to_string | ( | int32_t | db_id, |
int32_t | new_owner_id, | ||
const std::map< int32_t, std::vector< DBObject >> & | old_owner_db_objects | ||
) |
Definition at line 6137 of file Catalog.cpp.
References DBObjectTypeToString(), and run_benchmark_import::result.
Referenced by Catalog_Namespace::Catalog::restoreOldOwners().
void Catalog_Namespace::anonymous_namespace{Catalog.cpp}::drop_tables | ( | Catalog & | catalog, |
const std::vector< std::string > & | table_names | ||
) |
Definition at line 6488 of file Catalog.cpp.
References clear_cached_table_data(), Catalog_Namespace::Catalog::dropTable(), Catalog_Namespace::Catalog::getDatabaseId(), Catalog_Namespace::Catalog::getDataMgr(), and Catalog_Namespace::Catalog::getMetadataForTable().
Referenced by Catalog_Namespace::Catalog::initializeSystemTables().
std::string Catalog_Namespace::anonymous_namespace{Catalog.cpp}::get_checked_table_name | ( | const Catalog * | catalog, |
const ColumnDescriptor * | cd | ||
) |
Definition at line 6976 of file Catalog.cpp.
References CHECK, Catalog_Namespace::Catalog::getTableName(), and ColumnDescriptor::tableId.
Referenced by Catalog_Namespace::Catalog::updateInColumnMap().
|
inline |
Definition at line 6429 of file Catalog.cpp.
References kENCODING_DICT, kNULLT, and kTEXT.
Referenced by Catalog_Namespace::Catalog::initializeDashboardsSystemTable(), Catalog_Namespace::Catalog::initializeDatabasesSystemTable(), Catalog_Namespace::Catalog::initializeMemoryDetailsSystemTable(), Catalog_Namespace::Catalog::initializeMemorySummarySystemTable(), Catalog_Namespace::Catalog::initializeMLModelMetadataSystemTable(), Catalog_Namespace::Catalog::initializePermissionsSystemTable(), Catalog_Namespace::Catalog::initializeRequestLogsSystemTables(), Catalog_Namespace::Catalog::initializeRoleAssignmentsSystemTable(), Catalog_Namespace::Catalog::initializeRolesSystemTable(), Catalog_Namespace::Catalog::initializeServerLogsSystemTables(), Catalog_Namespace::Catalog::initializeStorageDetailsSystemTable(), Catalog_Namespace::Catalog::initializeTablesSystemTable(), Catalog_Namespace::Catalog::initializeUsersSystemTable(), Catalog_Namespace::Catalog::initializeWebServerAccessLogsSystemTables(), and Catalog_Namespace::Catalog::initializeWebServerLogsSystemTables().
const ColumnDescriptor* Catalog_Namespace::anonymous_namespace{Catalog.cpp}::get_foreign_col | ( | const Catalog & | cat, |
const Parser::SharedDictionaryDef & | shared_dict_def | ||
) |
Definition at line 3963 of file Catalog.cpp.
References CHECK, Parser::SharedDictionaryDef::get_foreign_column(), Parser::SharedDictionaryDef::get_foreign_table(), Catalog_Namespace::Catalog::getMetadataForColumn(), and Catalog_Namespace::Catalog::getMetadataForTable().
Referenced by Catalog_Namespace::Catalog::addReferenceToForeignDict().
int64_t Catalog_Namespace::anonymous_namespace{Catalog.cpp}::get_next_refresh_time | ( | const foreign_storage::ForeignTable & | foreign_table | ) |
Definition at line 2932 of file Catalog.cpp.
References CHECK, foreign_storage::RefreshTimeCalculator::getNextRefreshTime(), foreign_storage::ForeignTable::NULL_REFRESH_TIME, foreign_storage::OptionsContainer::options, foreign_storage::ForeignTable::REFRESH_TIMING_TYPE_KEY, and foreign_storage::ForeignTable::SCHEDULE_REFRESH_TIMING_TYPE.
Referenced by Catalog_Namespace::Catalog::createTable(), and Catalog_Namespace::Catalog::updateForeignTableRefreshTimes().
std::map< int32_t, std::string > Catalog_Namespace::anonymous_namespace{Catalog.cpp}::get_user_id_to_user_name_map | ( | ) |
Definition at line 1045 of file Catalog.cpp.
References Catalog_Namespace::SysCatalog::getAllUserMetadata(), and Catalog_Namespace::SysCatalog::instance().
Referenced by Catalog_Namespace::Catalog::buildMaps(), and Catalog_Namespace::Catalog::reloadCatalogMetadata().
std::string Catalog_Namespace::anonymous_namespace{Catalog.cpp}::get_user_name_from_id | ( | int32_t | id, |
const std::map< int32_t, std::string > & | user_name_by_user_id | ||
) |
Definition at line 1054 of file Catalog.cpp.
Referenced by Catalog_Namespace::Catalog::buildDashboardsMapUnlocked().
|
inline |
Definition at line 6433 of file Catalog.cpp.
References kARRAY, and kENCODING_NONE.
Referenced by get_var_encoded_text_array_type(), and Catalog_Namespace::Catalog::initializeMemoryDetailsSystemTable().
|
inline |
Definition at line 6439 of file Catalog.cpp.
References get_var_array_type(), kENCODING_DICT, and kTEXT.
Referenced by Catalog_Namespace::Catalog::initializeDashboardsSystemTable(), Catalog_Namespace::Catalog::initializeMLModelMetadataSystemTable(), and Catalog_Namespace::Catalog::initializePermissionsSystemTable().
void Catalog_Namespace::anonymous_namespace{Catalog.cpp}::replace_cached_table_name | ( | std::map< std::string, int > & | cachedTableMap, |
const std::string & | curTableName, | ||
const std::string & | newTableName, | ||
int | tableId | ||
) |
Definition at line 4501 of file Catalog.cpp.
Referenced by Catalog_Namespace::Catalog::renameTables().
void Catalog_Namespace::anonymous_namespace{Catalog.cpp}::set_common_db_log_system_table_options | ( | foreign_storage::ForeignTable & | foreign_table | ) |
Definition at line 6467 of file Catalog.cpp.
References foreign_storage::OptionsContainer::options, and set_common_log_system_table_options().
Referenced by Catalog_Namespace::Catalog::initializeRequestLogsSystemTables(), and Catalog_Namespace::Catalog::initializeServerLogsSystemTables().
void Catalog_Namespace::anonymous_namespace{Catalog.cpp}::set_common_log_system_table_options | ( | foreign_storage::ForeignTable & | foreign_table | ) |
Definition at line 6446 of file Catalog.cpp.
References shared::convert_temporal_to_iso_format(), g_enable_logs_system_tables_auto_refresh, g_logs_system_tables_refresh_interval, foreign_storage::RefreshTimeCalculator::getCurrentTime(), kTIMESTAMP, and foreign_storage::OptionsContainer::options.
Referenced by Catalog_Namespace::Catalog::initializeWebServerAccessLogsSystemTables(), Catalog_Namespace::Catalog::initializeWebServerLogsSystemTables(), and set_common_db_log_system_table_options().
void Catalog_Namespace::anonymous_namespace{Catalog.cpp}::set_dict_key | ( | ColumnDescriptor & | cd | ) |
Definition at line 1065 of file Catalog.cpp.
References CHECK_GT, ColumnDescriptor::columnType, ColumnDescriptor::db_id, and SQLTypeInfo::setStringDictKey().
Referenced by Catalog_Namespace::Catalog::buildColumnsMapUnlocked(), Catalog_Namespace::Catalog::createTable(), Catalog_Namespace::Catalog::setColumnDictionary(), and Catalog_Namespace::Catalog::sqliteGetColumnsForTableUnlocked().
std::string Catalog_Namespace::anonymous_namespace{Catalog.cpp}::table_epochs_to_string | ( | const std::vector< TableEpochInfo > & | table_epochs | ) |
Definition at line 3878 of file Catalog.cpp.
References to_string().
Referenced by Catalog_Namespace::Catalog::setTableEpochsLogExceptions().
|
inline |
Definition at line 165 of file Catalog.cpp.
References shared::kCatalogDirectoryName.
Referenced by Catalog_Namespace::Catalog::dropTableFromJsonUnlocked(), Catalog_Namespace::Catalog::serializeTableJsonUnlocked(), Catalog_Namespace::thread_holding_write_lock(), and Catalog_Namespace::Catalog::~Catalog().
int32_t Catalog_Namespace::anonymous_namespace{Catalog.cpp}::validate_and_get_user_id | ( | const std::string & | user_name | ) |
Definition at line 6129 of file Catalog.cpp.
References lockmgr::instance(), and Catalog_Namespace::UserMetadata::userId.
Referenced by Catalog_Namespace::Catalog::reassignOwners().