GPUdb C++ API
Version 7.1.10.0
|
A set of input parameters for const. More...
#include <gpudb/protocol/create_projection.h>
Public Member Functions | |
CreateProjectionRequest () | |
Constructs a CreateProjectionRequest object with default parameter values. More... | |
CreateProjectionRequest (const std::string &tableName_, const std::string &projectionName_, const std::vector< std::string > &columnNames_, const std::map< std::string, std::string > &options_) | |
Constructs a CreateProjectionRequest object with the specified parameters. More... | |
Public Attributes | |
std::string | tableName |
std::string | projectionName |
std::vector< std::string > | columnNames |
std::map< std::string, std::string > | options |
A set of input parameters for const.
Creates a new projection of an existing table. A projection represents a subset of the columns (potentially including derived columns) of a table.
For projection details and examples, see Projections. For limitations, see Projection Limitations and Cautions.
Window functions, which can perform operations like moving averages, are available through this endpoint as well as const.
A projection can be created with a different shard key than the source table. By specifying shard_key, the projection will be sharded according to the specified columns, regardless of how the source table is sharded. The source table can even be unsharded or replicated.
If tableName is empty, selection is performed against a single-row virtual table. This can be useful in executing temporal (NOW()), identity (USER()), or constant-based functions (GEODIST(-77.11, 38.88, -71.06, 42.36)).
Definition at line 53 of file create_projection.h.
|
inline |
Constructs a CreateProjectionRequest object with default parameter values.
Definition at line 60 of file create_projection.h.
|
inline |
Constructs a CreateProjectionRequest object with the specified parameters.
[in] | tableName_ | Name of the existing table on which the projection is to be applied, in [schema_name.]table_name format, using standard name resolution rules. An empty table name creates a projection from a single-row virtual table, where columns specified should be constants or constant expressions. |
[in] | projectionName_ | Name of the projection to be created, in [schema_name.]table_name format, using standard name resolution rules and meeting table naming criteria. |
[in] | columnNames_ | List of columns from tableName to be included in the projection. Can include derived columns. Can be specified as aliased via the syntax 'column_name as alias'. |
[in] | options_ | Optional parameters.
|
Definition at line 286 of file create_projection.h.
std::vector<std::string> gpudb::CreateProjectionRequest::columnNames |
Definition at line 296 of file create_projection.h.
std::map<std::string, std::string> gpudb::CreateProjectionRequest::options |
Definition at line 297 of file create_projection.h.
std::string gpudb::CreateProjectionRequest::projectionName |
Definition at line 295 of file create_projection.h.
std::string gpudb::CreateProjectionRequest::tableName |
Definition at line 294 of file create_projection.h.