OmniSciDB
a5dc49c757
|
#include <InternalCatalogDataWrapper.h>
Public Member Functions | |
InternalCatalogDataWrapper () | |
InternalCatalogDataWrapper (const int db_id, const ForeignTable *foreign_table) | |
Public Member Functions inherited from foreign_storage::InternalSystemDataWrapper | |
InternalSystemDataWrapper () | |
InternalSystemDataWrapper (const int db_id, const ForeignTable *foreign_table) | |
void | populateChunkMetadata (ChunkMetadataVector &chunk_metadata_vector) override |
void | populateChunkBuffers (const ChunkToBufferMap &required_buffers, const ChunkToBufferMap &optional_buffers, AbstractBuffer *delete_buffer) override |
void | validateServerOptions (const ForeignServer *foreign_server) const override |
void | validateTableOptions (const ForeignTable *foreign_table) const override |
const std::set < std::string_view > & | getSupportedTableOptions () const override |
void | validateUserMappingOptions (const UserMapping *user_mapping, const ForeignServer *foreign_server) const override |
const std::set < std::string_view > & | getSupportedUserMappingOptions () const override |
std::string | getSerializedDataWrapper () const override |
void | restoreDataWrapperInternals (const std::string &file_path, const ChunkMetadataVector &chunk_metadata) override |
bool | isRestored () const override |
Public Member Functions inherited from foreign_storage::ForeignDataWrapper | |
ForeignDataWrapper ()=default | |
virtual | ~ForeignDataWrapper ()=default |
virtual const std::set < std::string > | getAlterableTableOptions () const |
virtual void | validateSchema (const std::list< ColumnDescriptor > &columns) const |
virtual ParallelismLevel | getCachedParallelismLevel () const |
virtual ParallelismLevel | getNonCachedParallelismLevel () const |
virtual bool | isLazyFragmentFetchingEnabled () const |
Private Member Functions | |
void | initializeObjectsForTable (const std::string &table_name) override |
void | populateChunkBuffersForTable (const std::string &table_name, std::map< std::string, import_export::TypedImportBuffer * > &import_buffers) override |
Private Attributes | |
std::list < Catalog_Namespace::UserMetadata > | users_ |
std::map< int32_t, std::vector < TableDescriptor > > | tables_by_database_ |
std::map< int32_t, std::vector < DashboardDescriptor > > | dashboards_by_database_ |
std::vector< ObjectRoleDescriptor > | object_permissions_ |
std::list < Catalog_Namespace::DBMetadata > | databases_ |
std::set< std::string > | roles_ |
std::map< std::string, std::vector< std::string > > | user_names_by_role_ |
Additional Inherited Members | |
Public Types inherited from foreign_storage::ForeignDataWrapper | |
enum | ParallelismLevel { NONE, INTRA_FRAGMENT, INTER_FRAGMENT } |
Protected Attributes inherited from foreign_storage::InternalSystemDataWrapper | |
const int | db_id_ |
const ForeignTable * | foreign_table_ |
size_t | row_count_ {0} |
Definition at line 28 of file InternalCatalogDataWrapper.h.
foreign_storage::InternalCatalogDataWrapper::InternalCatalogDataWrapper | ( | ) |
Definition at line 31 of file InternalCatalogDataWrapper.cpp.
foreign_storage::InternalCatalogDataWrapper::InternalCatalogDataWrapper | ( | const int | db_id, |
const ForeignTable * | foreign_table | ||
) |
Definition at line 33 of file InternalCatalogDataWrapper.cpp.
|
overrideprivatevirtual |
Implements foreign_storage::InternalSystemDataWrapper.
Definition at line 489 of file InternalCatalogDataWrapper.cpp.
References dashboards_by_database_, Catalog_Namespace::DASHBOARDS_SYS_TABLE_NAME, databases_, Catalog_Namespace::DATABASES_SYS_TABLE_NAME, foreign_storage::InternalSystemDataWrapper::foreign_table_, foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_all_dashboards(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_all_role_assignments(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_all_tables(), Catalog_Namespace::SysCatalog::instance(), dist::is_aggregator(), dist::is_distributed(), dist::is_first_leaf(), object_permissions_, Catalog_Namespace::PERMISSIONS_SYS_TABLE_NAME, Catalog_Namespace::ROLE_ASSIGNMENTS_SYS_TABLE_NAME, roles_, Catalog_Namespace::ROLES_SYS_TABLE_NAME, foreign_storage::InternalSystemDataWrapper::row_count_, TableDescriptor::tableName, run_benchmark_import::tables, tables_by_database_, Catalog_Namespace::TABLES_SYS_TABLE_NAME, UNREACHABLE, user_names_by_role_, users_, and Catalog_Namespace::USERS_SYS_TABLE_NAME.
|
overrideprivatevirtual |
Implements foreign_storage::InternalSystemDataWrapper.
Definition at line 548 of file InternalCatalogDataWrapper.cpp.
References dashboards_by_database_, Catalog_Namespace::DASHBOARDS_SYS_TABLE_NAME, databases_, Catalog_Namespace::DATABASES_SYS_TABLE_NAME, foreign_storage::InternalSystemDataWrapper::foreign_table_, object_permissions_, Catalog_Namespace::PERMISSIONS_SYS_TABLE_NAME, foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::populate_import_buffers_for_catalog_dashboards(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::populate_import_buffers_for_catalog_databases(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::populate_import_buffers_for_catalog_permissions(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::populate_import_buffers_for_catalog_role_assignments(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::populate_import_buffers_for_catalog_roles(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::populate_import_buffers_for_catalog_tables(), foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::populate_import_buffers_for_catalog_users(), Catalog_Namespace::ROLE_ASSIGNMENTS_SYS_TABLE_NAME, roles_, Catalog_Namespace::ROLES_SYS_TABLE_NAME, TableDescriptor::tableName, tables_by_database_, Catalog_Namespace::TABLES_SYS_TABLE_NAME, UNREACHABLE, user_names_by_role_, users_, and Catalog_Namespace::USERS_SYS_TABLE_NAME.
|
private |
Definition at line 43 of file InternalCatalogDataWrapper.h.
Referenced by initializeObjectsForTable(), and populateChunkBuffersForTable().
|
private |
Definition at line 45 of file InternalCatalogDataWrapper.h.
Referenced by initializeObjectsForTable(), and populateChunkBuffersForTable().
|
private |
Definition at line 44 of file InternalCatalogDataWrapper.h.
Referenced by initializeObjectsForTable(), and populateChunkBuffersForTable().
|
private |
Definition at line 46 of file InternalCatalogDataWrapper.h.
Referenced by initializeObjectsForTable(), and populateChunkBuffersForTable().
|
private |
Definition at line 42 of file InternalCatalogDataWrapper.h.
Referenced by initializeObjectsForTable(), and populateChunkBuffersForTable().
|
private |
Definition at line 47 of file InternalCatalogDataWrapper.h.
Referenced by initializeObjectsForTable(), and populateChunkBuffersForTable().
|
private |
Definition at line 41 of file InternalCatalogDataWrapper.h.
Referenced by initializeObjectsForTable(), and populateChunkBuffersForTable().