GPUdb C++ API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gpudb::MergeRecordsRequest Struct Reference

A set of input parameters for const. More...

#include <gpudb/protocol/merge_records.h>

Public Member Functions

 MergeRecordsRequest ()
 Constructs a MergeRecordsRequest object with default parameter values. More...
 
 MergeRecordsRequest (const std::string &tableName_, const std::vector< std::string > &sourceTableNames_, const std::vector< std::map< std::string, std::string > > &fieldMaps_, const std::map< std::string, std::string > &options_)
 Constructs a MergeRecordsRequest object with the specified parameters. More...
 

Public Attributes

std::string tableName
 
std::vector< std::string > sourceTableNames
 
std::vector< std::map
< std::string, std::string > > 
fieldMaps
 
std::map< std::string,
std::string > 
options
 

Detailed Description

A set of input parameters for const.

Create a new empty result table (specified by tableName), and insert all records from source tables (specified by sourceTableNames) based on the field mapping information (specified by fieldMaps).

For merge records details and examples, see Merge Records. For limitations, see Merge Records Limitations and Cautions.

The field map (specified by fieldMaps) holds the user-specified maps of target table column names to source table columns. The array of fieldMaps must match one-to-one with the sourceTableNames, e.g., there's a map present in fieldMaps for each table listed in sourceTableNames.

Definition at line 32 of file merge_records.h.

Constructor & Destructor Documentation

gpudb::MergeRecordsRequest::MergeRecordsRequest ( )
inline

Constructs a MergeRecordsRequest object with default parameter values.

Definition at line 39 of file merge_records.h.

gpudb::MergeRecordsRequest::MergeRecordsRequest ( const std::string &  tableName_,
const std::vector< std::string > &  sourceTableNames_,
const std::vector< std::map< std::string, std::string > > &  fieldMaps_,
const std::map< std::string, std::string > &  options_ 
)
inline

Constructs a MergeRecordsRequest object with the specified parameters.

Parameters
[in]tableName_The new result table name for the records to be merged. Must NOT be an existing table.
[in]sourceTableNames_The list of source table names to get the records from. Must be existing table names.
[in]fieldMaps_Contains a list of source/target column mappings, one mapping for each source table listed in sourceTableNames being merged into the target table specified by tableName. Each mapping contains the target column names (as keys) that the data in the mapped source columns or column expressions (as values) will be merged into. All of the source columns being merged into a given target column must match in type, as that type will determine the type of the new target column.
[in]options_Optional parameters.

Definition at line 123 of file merge_records.h.

Member Data Documentation

std::vector<std::map<std::string, std::string> > gpudb::MergeRecordsRequest::fieldMaps

Definition at line 133 of file merge_records.h.

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

Definition at line 134 of file merge_records.h.

std::vector<std::string> gpudb::MergeRecordsRequest::sourceTableNames

Definition at line 132 of file merge_records.h.

std::string gpudb::MergeRecordsRequest::tableName

Definition at line 131 of file merge_records.h.


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