◆ appendRecords() [1/4]
| AppendRecordsResponse gpudb::GPUdb::appendRecords | ( | const AppendRecordsRequest & | request_ | ) | const |
Append (or insert) all records from a source table (specified by sourceTableName) to a particular target table (specified by tableName).
The field map (specified by fieldMap) holds the user specified map of target table column names with their mapped source column names.
| [in] | request_ | Request object containing the parameters for the operation. |
◆ appendRecords() [2/4]
| AppendRecordsResponse & gpudb::GPUdb::appendRecords | ( | const AppendRecordsRequest & | request_, |
| AppendRecordsResponse & | response_ ) const |
Append (or insert) all records from a source table (specified by sourceTableName) to a particular target table (specified by tableName).
The field map (specified by fieldMap) holds the user specified map of target table column names with their mapped source column names.
◆ appendRecords() [3/4]
| AppendRecordsResponse gpudb::GPUdb::appendRecords | ( | const std::string & | tableName, |
| const std::string & | sourceTableName, | ||
| const std::map< std::string, std::string > & | fieldMap, | ||
| const std::map< std::string, std::string > & | options ) const |
Append (or insert) all records from a source table (specified by sourceTableName) to a particular target table (specified by tableName).
The field map (specified by fieldMap) holds the user specified map of target table column names with their mapped source column names.
| [in] | tableName | The table name for the records to be appended, in [schema_name.]table_name format, using standard name resolution rules. Must be an existing table. |
| [in] | sourceTableName | The source table name to get records from, in [schema_name.]table_name format, using standard name resolution rules. Must be an existing table name. |
| [in] | fieldMap | Contains the mapping of column names from the target table (specified by tableName) as the keys, and corresponding column names or expressions (e.g., ‘col_name+1’) from the source table (specified by sourceTableName). Must be existing column names in source table and target table, and their types must be matched. For details on using expressions, see Expressions. |
| [in] | options | Optional parameters.
|
◆ appendRecords() [4/4]
| AppendRecordsResponse & gpudb::GPUdb::appendRecords | ( | const std::string & | tableName, |
| const std::string & | sourceTableName, | ||
| const std::map< std::string, std::string > & | fieldMap, | ||
| const std::map< std::string, std::string > & | options, | ||
| AppendRecordsResponse & | response_ ) const |
Append (or insert) all records from a source table (specified by sourceTableName) to a particular target table (specified by tableName).
The field map (specified by fieldMap) holds the user specified map of target table column names with their mapped source column names.
| [in] | tableName | The table name for the records to be appended, in [schema_name.]table_name format, using standard name resolution rules. Must be an existing table. |
| [in] | sourceTableName | The source table name to get records from, in [schema_name.]table_name format, using standard name resolution rules. Must be an existing table name. |
| [in] | fieldMap | Contains the mapping of column names from the target table (specified by tableName) as the keys, and corresponding column names or expressions (e.g., ‘col_name+1’) from the source table (specified by sourceTableName). Must be existing column names in source table and target table, and their types must be matched. For details on using expressions, see Expressions. |
| [in] | options | Optional parameters.
|
| [out] | response_ | Response object containing the results of the operation. |