GPUdb C++ API  Version 5.2.0.0
gpudb::CreateUnionRequest Struct Reference

A set of input parameters for createUnion(const CreateUnionRequest&) const. More...

#include <gpudb/protocol/create_union.h>

Public Member Functions

 CreateUnionRequest ()
 Constructs a CreateUnionRequest object with default parameter values. More...
 
 CreateUnionRequest (const std::string &tableName, const std::vector< std::string > &tableNames, const std::vector< std::vector< std::string > > &inputColumnNames, const std::vector< std::string > &outputColumnNames, const std::map< std::string, std::string > &options)
 Constructs a CreateUnionRequest object with the specified parameters. More...
 

Public Attributes

std::string tableName
 
std::vector< std::string > tableNames
 
std::vector< std::vector< std::string > > inputColumnNames
 
std::vector< std::string > outputColumnNames
 
std::map< std::string, std::string > options
 

Detailed Description

A set of input parameters for createUnion(const CreateUnionRequest&) const.

Creates a table that is the concatenation of one or more existing tables. It is equivalent to the SQL UNION ALL operator. Non-charN 'string' and 'bytes' column types cannot be included in a union, neither can columns with the property 'store_only'.

Definition at line 21 of file create_union.h.

Constructor & Destructor Documentation

gpudb::CreateUnionRequest::CreateUnionRequest ( )
inline

Constructs a CreateUnionRequest object with default parameter values.

Definition at line 28 of file create_union.h.

gpudb::CreateUnionRequest::CreateUnionRequest ( const std::string &  tableName,
const std::vector< std::string > &  tableNames,
const std::vector< std::vector< std::string > > &  inputColumnNames,
const std::vector< std::string > &  outputColumnNames,
const std::map< std::string, std::string > &  options 
)
inline

Constructs a CreateUnionRequest object with the specified parameters.

Parameters
[in]tableNameName of the table to be created. Must not be the name of a currently existing GPUdb table. Cannot be an empty string.
[in]tableNamesThe list of table names making up the union. Must contain the names of one or more existing tables.
[in]inputColumnNamesThe list of columns from each of the corresponding input tables.
[in]outputColumnNamesThe list of names of the columns to be stored in the union.
[in]optionsOptional parameters.
  • collection_name: Name of a collection in GPUdb to which the union is to be assigned as a child table. If empty, then the union will be a top level table.
Default value is an empty std::map.

Definition at line 61 of file create_union.h.

Member Data Documentation

std::vector<std::vector<std::string> > gpudb::CreateUnionRequest::inputColumnNames

Definition at line 72 of file create_union.h.

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

Definition at line 74 of file create_union.h.

std::vector<std::string> gpudb::CreateUnionRequest::outputColumnNames

Definition at line 73 of file create_union.h.

std::string gpudb::CreateUnionRequest::tableName

Definition at line 70 of file create_union.h.

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

Definition at line 71 of file create_union.h.


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