GPUdb C++ API  Version 6.2.0.3
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.

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 parameter values.

Definition at line 54 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. Has the same naming restrictions as tables.
[in]tableNames_The list of table names to merge. 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.

Definition at line 179 of file create_union.h.

Member Data Documentation

◆ inputColumnNames

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

Definition at line 190 of file create_union.h.

◆ options

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

Definition at line 192 of file create_union.h.

◆ outputColumnNames

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

Definition at line 191 of file create_union.h.

◆ tableName

std::string gpudb::CreateUnionRequest::tableName

Definition at line 188 of file create_union.h.

◆ tableNames

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

Definition at line 189 of file create_union.h.


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