GPUdb C++ API
Version 6.1.0.0
|
A set of input parameters for alterTable(const AlterTableRequest&) const. More...
#include <gpudb/protocol/alter_table.h>
Public Member Functions | |
AlterTableRequest () | |
Constructs an AlterTableRequest object with default parameter values. More... | |
AlterTableRequest (const std::string &tableName_, const std::string &action_, const std::string &value_, const std::map< std::string, std::string > &options_) | |
Constructs an AlterTableRequest object with the specified parameters. More... | |
Public Attributes | |
std::string | tableName |
std::string | action |
std::string | value |
std::map< std::string, std::string > | options |
A set of input parameters for alterTable(const AlterTableRequest&) const.
Apply various modifications to a table, view, or collection. The available modifications include the following:
Create or delete an index on a particular column. This can speed up certain operations when using expressions containing equality or relational operators on indexed columns. This only applies to tables.
Set the time-to-live (TTL). This can be applied to tables, views, or collections. When applied to collections, every contained table & view that is not protected will have its TTL set to the given value.
Set the global access mode (i.e. locking) for a table. The mode can be set to 'no_access', 'read_only', 'write_only' or 'read_write'.
Change the protection mode to prevent or allow automatic expiration. This can be applied to tables, views, and collections.
Allow homogeneous tables within a collection.
Manage a table's columns–a column can be added, removed, or have its type and properties modified.
Set or unset compression for a column.
Definition at line 53 of file alter_table.h.
|
inline |
Constructs an AlterTableRequest object with default parameter values.
Definition at line 60 of file alter_table.h.
|
inline |
Constructs an AlterTableRequest object with the specified parameters.
[in] | tableName_ | Table on which the operation will be performed. Must be an existing table, view, or collection. |
[in] | action_ | Modification operation to be applied
|
[in] | value_ | The value of the modification. May be a column name, 'true' or 'false', a TTL, or the global access mode depending on action. |
[in] | options_ | Optional parameters.
|
Definition at line 212 of file alter_table.h.
std::string gpudb::AlterTableRequest::action |
Definition at line 221 of file alter_table.h.
std::map<std::string, std::string> gpudb::AlterTableRequest::options |
Definition at line 223 of file alter_table.h.
std::string gpudb::AlterTableRequest::tableName |
Definition at line 220 of file alter_table.h.
std::string gpudb::AlterTableRequest::value |
Definition at line 222 of file alter_table.h.