GPUdb C++ API  Version 6.2.0.3
gpudb::AlterTableMetadataRequest Struct Reference

A set of input parameters for alterTableMetadata(const AlterTableMetadataRequest&) const. More...

#include <gpudb/protocol/alter_table_metadata.h>

Public Member Functions

 AlterTableMetadataRequest ()
 Constructs an AlterTableMetadataRequest object with default parameter values. More...
 
 AlterTableMetadataRequest (const std::vector< std::string > &tableNames_, const std::map< std::string, std::string > &metadataMap_, const std::map< std::string, std::string > &options_)
 Constructs an AlterTableMetadataRequest object with the specified parameters. More...
 

Public Attributes

std::vector< std::string > tableNames
 
std::map< std::string, std::string > metadataMap
 
std::map< std::string, std::string > options
 

Detailed Description

A set of input parameters for alterTableMetadata(const AlterTableMetadataRequest&) const.

Updates (adds or changes) metadata for tables. The metadata key and values must both be strings. This is an easy way to annotate whole tables rather than single records within tables. Some examples of metadata are owner of the table, table creation timestamp etc.

Definition at line 21 of file alter_table_metadata.h.

Constructor & Destructor Documentation

◆ AlterTableMetadataRequest() [1/2]

gpudb::AlterTableMetadataRequest::AlterTableMetadataRequest ( )
inline

Constructs an AlterTableMetadataRequest object with default parameter values.

Definition at line 28 of file alter_table_metadata.h.

◆ AlterTableMetadataRequest() [2/2]

gpudb::AlterTableMetadataRequest::AlterTableMetadataRequest ( const std::vector< std::string > &  tableNames_,
const std::map< std::string, std::string > &  metadataMap_,
const std::map< std::string, std::string > &  options_ 
)
inline

Constructs an AlterTableMetadataRequest object with the specified parameters.

Parameters
[in]tableNames_Names of the tables whose metadata will be updated. All specified tables must exist, or an error will be returned.
[in]metadataMap_A map which contains the metadata of the tables that are to be updated. Note that only one map is provided for all the tables; so the change will be applied to every table. If the provided map is empty, then all existing metadata for the table(s) will be cleared.
[in]options_Optional parameters.

Definition at line 52 of file alter_table_metadata.h.

Member Data Documentation

◆ metadataMap

std::map<std::string, std::string> gpudb::AlterTableMetadataRequest::metadataMap

Definition at line 60 of file alter_table_metadata.h.

◆ options

std::map<std::string, std::string> gpudb::AlterTableMetadataRequest::options

Definition at line 61 of file alter_table_metadata.h.

◆ tableNames

std::vector<std::string> gpudb::AlterTableMetadataRequest::tableNames

Definition at line 59 of file alter_table_metadata.h.


The documentation for this struct was generated from the following file: