OmniSciDB
f17484ade4
|
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) |
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 6107 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 6415 of file Catalog.cpp.
References foreign_storage::ForeignStorageCache::clearForTablePrefix(), PersistentStorageMgr::getDiskCache(), and Data_Namespace::DataMgr::getPersistentStorageMgr().
Referenced by 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 6084 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 6424 of file Catalog.cpp.
References Catalog_Namespace::Catalog::dropTable(), 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 6910 of file Catalog.cpp.
References CHECK, Catalog_Namespace::Catalog::getTableName(), and ColumnDescriptor::tableId.
Referenced by Catalog_Namespace::Catalog::updateInColumnMap().
|
inline |
Definition at line 6376 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 4056 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 3025 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 1042 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 1051 of file Catalog.cpp.
Referenced by Catalog_Namespace::Catalog::buildDashboardsMapUnlocked().
|
inline |
Definition at line 6380 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 6386 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}::set_common_db_log_system_table_options | ( | foreign_storage::ForeignTable & | foreign_table | ) |
Definition at line 6403 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 6393 of file Catalog.cpp.
References 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 1062 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(), and Catalog_Namespace::Catalog::setColumnDictionary().
std::string Catalog_Namespace::anonymous_namespace{Catalog.cpp}::table_epochs_to_string | ( | const std::vector< TableEpochInfo > & | table_epochs | ) |
Definition at line 3971 of file Catalog.cpp.
References to_string().
Referenced by Catalog_Namespace::Catalog::setTableEpochsLogExceptions().
|
inline |
Definition at line 162 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 6076 of file Catalog.cpp.
References Catalog_Namespace::UserMetadata::userId.
Referenced by Catalog_Namespace::Catalog::reassignOwners().