OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
foreign_storage::InternalMLModelMetadataDataWrapper Class Reference

#include <InternalMLModelMetadataDataWrapper.h>

+ Inheritance diagram for foreign_storage::InternalMLModelMetadataDataWrapper:
+ Collaboration diagram for foreign_storage::InternalMLModelMetadataDataWrapper:

Public Member Functions

 InternalMLModelMetadataDataWrapper ()
 
 InternalMLModelMetadataDataWrapper (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::vector< MLModelMetadataml_models_metadata_
 

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 ForeignTableforeign_table_
 
size_t row_count_ {0}
 

Detailed Description

Definition at line 30 of file InternalMLModelMetadataDataWrapper.h.

Constructor & Destructor Documentation

foreign_storage::InternalMLModelMetadataDataWrapper::InternalMLModelMetadataDataWrapper ( )
foreign_storage::InternalMLModelMetadataDataWrapper::InternalMLModelMetadataDataWrapper ( const int  db_id,
const ForeignTable foreign_table 
)

Member Function Documentation

void foreign_storage::InternalMLModelMetadataDataWrapper::initializeObjectsForTable ( const std::string &  table_name)
overrideprivatevirtual

Implements foreign_storage::InternalSystemDataWrapper.

Definition at line 82 of file InternalMLModelMetadataDataWrapper.cpp.

References CHECK_EQ, foreign_storage::InternalSystemDataWrapper::foreign_table_, g_ml_models, MLModelMap::getModelMetadata(), Catalog_Namespace::ML_MODEL_METADATA_SYS_TABLE_NAME, ml_models_metadata_, foreign_storage::InternalSystemDataWrapper::row_count_, and TableDescriptor::tableName.

83  {
84  CHECK_EQ(foreign_table_->tableName, table_name);
86  << "Unexpected table name: " << foreign_table_->tableName;
89 }
#define CHECK_EQ(x, y)
Definition: Logger.h:301
std::string tableName
std::vector< MLModelMetadata > getModelMetadata() const
Definition: MLModel.h:84
MLModelMap g_ml_models
Definition: MLModel.h:125
static constexpr const char * ML_MODEL_METADATA_SYS_TABLE_NAME
Definition: Catalog.h:124

+ Here is the call graph for this function:

void foreign_storage::InternalMLModelMetadataDataWrapper::populateChunkBuffersForTable ( const std::string &  table_name,
std::map< std::string, import_export::TypedImportBuffer * > &  import_buffers 
)
overrideprivatevirtual

Implements foreign_storage::InternalSystemDataWrapper.

Definition at line 91 of file InternalMLModelMetadataDataWrapper.cpp.

References CHECK_EQ, foreign_storage::InternalSystemDataWrapper::foreign_table_, Catalog_Namespace::ML_MODEL_METADATA_SYS_TABLE_NAME, ml_models_metadata_, foreign_storage::anonymous_namespace{InternalMLModelMetadataDataWrapper.cpp}::populate_import_buffers_for_ml_model_metadata(), and TableDescriptor::tableName.

93  {
94  CHECK_EQ(foreign_table_->tableName, table_name);
96  << "Unexpected table name: " << foreign_table_->tableName;
98 }
#define CHECK_EQ(x, y)
Definition: Logger.h:301
std::string tableName
void populate_import_buffers_for_ml_model_metadata(const std::vector< MLModelMetadata > &ml_models_metadata, std::map< std::string, import_export::TypedImportBuffer * > &import_buffers)
static constexpr const char * ML_MODEL_METADATA_SYS_TABLE_NAME
Definition: Catalog.h:124

+ Here is the call graph for this function:

Member Data Documentation

std::vector<MLModelMetadata> foreign_storage::InternalMLModelMetadataDataWrapper::ml_models_metadata_
private

The documentation for this class was generated from the following files: