GPUdb C++ API
Version 7.1.10.0
|
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 |
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 33 of file merge_records.h.
|
inline |
Constructs a MergeRecordsRequest object with default parameter values.
Definition at line 40 of file merge_records.h.
|
inline |
Constructs a MergeRecordsRequest object with the specified parameters.
[in] | tableName_ | The name of the new result table for the records to be merged into, in [schema_name.]table_name format, using standard name resolution rules and meeting table naming criteria. Must NOT be an existing table. |
[in] | sourceTableNames_ | The list of names of source tables to get the records from, each in [schema_name.]table_name format, using standard name resolution rules. 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 152 of file merge_records.h.
std::vector<std::map<std::string, std::string> > gpudb::MergeRecordsRequest::fieldMaps |
Definition at line 162 of file merge_records.h.
std::map<std::string, std::string> gpudb::MergeRecordsRequest::options |
Definition at line 163 of file merge_records.h.
std::vector<std::string> gpudb::MergeRecordsRequest::sourceTableNames |
Definition at line 161 of file merge_records.h.
std::string gpudb::MergeRecordsRequest::tableName |
Definition at line 160 of file merge_records.h.