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

A set of parameters for GPUdb::createUnion. More...

#include <gpudb/protocol/create_union.h>

Public Member Functions

 CreateUnionRequest ()
 Constructs a CreateUnionRequest object with default parameters. 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
 Name of the table to be created, in [ schema_name. ]table_name format, using standard name resolution rules and meeting table naming criteria. More...
 
std::vector< std::string > tableNames
 The list of table names to merge, in [ schema_name. ]table_name format, using standard name resolution rules. More...
 
std::vector< std::vector< std::string > > inputColumnNames
 The list of columns from each of the corresponding input tables. More...
 
std::vector< std::string > outputColumnNames
 The list of names of the columns to be stored in the output table. More...
 
std::map< std::string, std::string > options
 Optional parameters. More...
 

Detailed Description

A set of parameters for GPUdb::createUnion.

Merges data from one or more tables with comparable data types into a new table.

The following merges are supported:

UNION (DISTINCT/ALL) - For data set union details and examples, see Union. For limitations, see Union Limitations and Cautions.

INTERSECT (DISTINCT/ALL) - For data set intersection details and examples, see Intersect. For limitations, see Intersect Limitations.

EXCEPT (DISTINCT/ALL) - For data set subtraction details and examples, see Except. For limitations, see Except Limitations.

MERGE VIEWS - For a given set of filtered views on a single table, creates a single filtered view containing all of the unique records across all of the given filtered data sets.

Non-charN 'string' and 'bytes' column types cannot be merged, nor can columns marked as store-only.

Definition at line 47 of file create_union.h.

Constructor & Destructor Documentation

◆ CreateUnionRequest() [1/2]

gpudb::CreateUnionRequest::CreateUnionRequest ( )
inline

Constructs a CreateUnionRequest object with default parameters.

Definition at line 52 of file create_union.h.

◆ CreateUnionRequest() [2/2]

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]tableName_Name of the table to be created, in [schema_name.]table_name format, using standard name resolution rules and meeting table naming criteria.
[in]tableNames_The list of table names to merge, in [schema_name.]table_name format, using standard name resolution rules. Must contain the names of one or more existing tables.
[in]inputColumnNames_The list of columns from each of the corresponding input tables.
[in]outputColumnNames_The list of names of the columns to be stored in the output table.
[in]options_Optional parameters. The default value is an empty map.

Definition at line 283 of file create_union.h.

Member Data Documentation

◆ inputColumnNames

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

The list of columns from each of the corresponding input tables.

Definition at line 314 of file create_union.h.

◆ options

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

Optional parameters.

The default value is an empty map.

Definition at line 454 of file create_union.h.

◆ outputColumnNames

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

The list of names of the columns to be stored in the output table.

Definition at line 319 of file create_union.h.

◆ tableName

std::string gpudb::CreateUnionRequest::tableName

Name of the table to be created, in [ schema_name. ]table_name format, using standard name resolution rules and meeting table naming criteria.

Definition at line 300 of file create_union.h.

◆ tableNames

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

The list of table names to merge, in [ schema_name. ]table_name format, using standard name resolution rules.

Must contain the names of one or more existing tables.

Definition at line 309 of file create_union.h.


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