OmniSciDB
a5dc49c757
|
#include <ForeignStorageInterface.h>
Public Member Functions | |
ForeignStorageInterface () | |
~ForeignStorageInterface () | |
ForeignStorageInterface (const ForeignStorageInterface &other)=delete | |
ForeignStorageInterface (ForeignStorageInterface &&other)=delete | |
ForeignStorageInterface & | operator= (const ForeignStorageInterface &other)=delete |
ForeignStorageInterface & | operator= (ForeignStorageInterface &&other)=delete |
Data_Namespace::AbstractBufferMgr * | lookupBufferManager (const int db_id, const int table_id) |
void | dropBufferManager (const int db_id, const int table_id) |
void | registerPersistentStorageInterface (std::unique_ptr< PersistentForeignStorageInterface > persistent_foreign_storage) |
void | prepareTable (const int db_id, TableDescriptor &td, std::list< ColumnDescriptor > &cols) |
prepare table options and modify columns More... | |
void | registerTable (Catalog_Namespace::Catalog *catalog, const TableDescriptor &td, const std::list< ColumnDescriptor > &cols) |
ids are created More... | |
Private Attributes | |
std::unordered_map < std::string, std::unique_ptr < PersistentForeignStorageInterface > > | persistent_storage_interfaces_ |
std::map< std::pair< int, int > , PersistentForeignStorageInterface * > | table_persistent_storage_interface_map_ |
std::map< std::pair< int, int > , std::unique_ptr < ForeignStorageBufferMgr > > | managers_map_ |
std::mutex | persistent_storage_interfaces_mutex_ |
Definition at line 220 of file ForeignStorageInterface.h.
|
inline |
Definition at line 222 of file ForeignStorageInterface.h.
|
inline |
Definition at line 223 of file ForeignStorageInterface.h.
|
delete |
|
delete |
void ForeignStorageInterface::dropBufferManager | ( | const int | db_id, |
const int | table_id | ||
) |
Definition at line 169 of file ForeignStorageInterface.cpp.
References managers_map_, and persistent_storage_interfaces_mutex_.
Data_Namespace::AbstractBufferMgr * ForeignStorageInterface::lookupBufferManager | ( | const int | db_id, |
const int | table_id | ||
) |
Definition at line 149 of file ForeignStorageInterface.cpp.
References CHECK, managers_map_, persistent_storage_interfaces_mutex_, and table_persistent_storage_interface_map_.
Referenced by registerTable().
|
delete |
|
delete |
void ForeignStorageInterface::prepareTable | ( | const int | db_id, |
TableDescriptor & | td, | ||
std::list< ColumnDescriptor > & | cols | ||
) |
prepare table options and modify columns
Definition at line 190 of file ForeignStorageInterface.cpp.
References parseStorageType(), persistent_storage_interfaces_, persistent_storage_interfaces_mutex_, TableDescriptor::storageType, and run_benchmark_import::type.
void ForeignStorageInterface::registerPersistentStorageInterface | ( | std::unique_ptr< PersistentForeignStorageInterface > | persistent_foreign_storage | ) |
Definition at line 175 of file ForeignStorageInterface.cpp.
References CHECK, persistent_storage_interfaces_, and persistent_storage_interfaces_mutex_.
void ForeignStorageInterface::registerTable | ( | Catalog_Namespace::Catalog * | catalog, |
const TableDescriptor & | td, | ||
const std::list< ColumnDescriptor > & | cols | ||
) |
ids are created
Definition at line 205 of file ForeignStorageInterface.cpp.
References Catalog_Namespace::DBMetadata::dbId, Catalog_Namespace::Catalog::getCurrentDB(), lookupBufferManager(), parseStorageType(), persistent_storage_interfaces_, persistent_storage_interfaces_mutex_, TableDescriptor::storageType, table_persistent_storage_interface_map_, TableDescriptor::tableId, and run_benchmark_import::type.
|
private |
Definition at line 252 of file ForeignStorageInterface.h.
Referenced by dropBufferManager(), and lookupBufferManager().
|
private |
Definition at line 249 of file ForeignStorageInterface.h.
Referenced by prepareTable(), registerPersistentStorageInterface(), and registerTable().
|
private |
Definition at line 253 of file ForeignStorageInterface.h.
Referenced by dropBufferManager(), lookupBufferManager(), prepareTable(), registerPersistentStorageInterface(), and registerTable().
|
private |
Definition at line 251 of file ForeignStorageInterface.h.
Referenced by lookupBufferManager(), and registerTable().