Skip to main content

◆ alterTableMetadata() [1/4]

AlterTableMetadataResponse gpudb::GPUdb::alterTableMetadata (const AlterTableMetadataRequest &request_) 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.

Parameters
[in]request_Request object containing the parameters for the operation.
Returns
Response object containing the result of the operation.

◆ alterTableMetadata() [2/4]

AlterTableMetadataResponse & gpudb::GPUdb::alterTableMetadata (const AlterTableMetadataRequest &request_,
AlterTableMetadataResponse &response_ ) 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.

Parameters
[in]request_Request object containing the parameters for the operation.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).

◆ alterTableMetadata() [3/4]

AlterTableMetadataResponse gpudb::GPUdb::alterTableMetadata (const std::vector< std::string > &tableNames,
const std::map< std::string, std::string > &metadataMap,
const std::map< std::string, std::string > &options ) 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.

Parameters
[in]tableNamesNames of the tables whose metadata will be updated, in [schema_name.]table_name format, using standard name resolution rules. All specified tables must exist, or an error will be returned.
[in]metadataMapA 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]optionsOptional parameters. The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ alterTableMetadata() [4/4]

AlterTableMetadataResponse & gpudb::GPUdb::alterTableMetadata (const std::vector< std::string > &tableNames,
const std::map< std::string, std::string > &metadataMap,
const std::map< std::string, std::string > &options,
AlterTableMetadataResponse &response_ ) 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.

Parameters
[in]tableNamesNames of the tables whose metadata will be updated, in [schema_name.]table_name format, using standard name resolution rules. All specified tables must exist, or an error will be returned.
[in]metadataMapA 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]optionsOptional parameters. The default value is an empty map.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).