GPUdb C++ API
Version 7.2.2.4
|
A set of parameters for GPUdb::insertRecordsRaw. More...
#include <gpudb/protocol/insert_records.h>
Public Member Functions | |
RawInsertRecordsRequest () | |
Constructs a RawInsertRecordsRequest object with default parameters. More... | |
RawInsertRecordsRequest (const std::string &tableName_, const std::vector< std::vector< uint8_t > > &list_, const std::map< std::string, std::string > &options_) | |
Constructs a RawInsertRecordsRequest object with the specified parameters. More... | |
RawInsertRecordsRequest (const std::string &tableName_, const std::vector< std::vector< uint8_t > > &list_, const std::vector< std::string > &listStr_, const std::string &listEncoding_, const std::map< std::string, std::string > &options_) | |
Constructs a RawInsertRecordsRequest object with the specified parameters. More... | |
Public Attributes | |
std::string | tableName |
Name of table to which the records are to be added, in [ schema_name. ]table_name format, using standard name resolution rules. More... | |
std::vector< std::vector< uint8_t > > | list |
An array of binary-encoded data for the records to be added. More... | |
std::vector< std::string > | listStr |
An array of JSON encoded data for the records to be added. More... | |
std::string | listEncoding |
The encoding of the records to be inserted. More... | |
std::map< std::string, std::string > | options |
Optional parameters. More... | |
A set of parameters for GPUdb::insertRecordsRaw.
Adds multiple records to the specified table. The operation is synchronous, meaning that a response will not be returned until all the records are fully inserted and available. The response payload provides the counts of the number of records actually inserted and/or updated, and can provide the unique identifier of each added record.
The options parameter can be used to customize this function's behavior.
The update_on_existing_pk option specifies the record collision policy for inserting into a table with a primary key, but is ignored if no primary key exists.
The return_record_ids option indicates that the database should return the unique identifiers of inserted records.
Definition at line 35 of file insert_records.h.
|
inline |
Constructs a RawInsertRecordsRequest object with default parameters.
Definition at line 40 of file insert_records.h.
|
inline |
Constructs a RawInsertRecordsRequest object with the specified parameters.
[in] | tableName_ | Name of table to which the records are to be added, in [schema_name.]table_name format, using standard name resolution rules. Must be an existing table. |
[in] | list_ | An array of binary-encoded data for the records to be added. All records must be of the same type as that of the table. Empty array if listEncoding_ is json. |
[in] | options_ | Optional parameters.
|
Definition at line 260 of file insert_records.h.
|
inline |
Constructs a RawInsertRecordsRequest object with the specified parameters.
[in] | tableName_ | Name of table to which the records are to be added, in [schema_name.]table_name format, using standard name resolution rules. Must be an existing table. |
[in] | list_ | An array of binary-encoded data for the records to be added. All records must be of the same type as that of the table. Empty array if listEncoding_ is json. |
[in] | listStr_ | An array of JSON encoded data for the records to be added. All records must be of the same type as that of the table. Empty array if listEncoding_ is binary. |
[in] | listEncoding_ | The encoding of the records to be inserted. Supported values: The default value is insert_records_binary. |
[in] | options_ | Optional parameters.
|
Definition at line 497 of file insert_records.h.
std::vector<std::vector<uint8_t> > gpudb::RawInsertRecordsRequest::list |
An array of binary-encoded data for the records to be added.
All records must be of the same type as that of the table. Empty array if listEncoding is json.
Definition at line 519 of file insert_records.h.
std::string gpudb::RawInsertRecordsRequest::listEncoding |
The encoding of the records to be inserted.
Supported values:
The default value is insert_records_binary.
Definition at line 538 of file insert_records.h.
std::vector<std::string> gpudb::RawInsertRecordsRequest::listStr |
An array of JSON encoded data for the records to be added.
All records must be of the same type as that of the table. Empty array if listEncoding is binary.
Definition at line 526 of file insert_records.h.
std::map<std::string, std::string> gpudb::RawInsertRecordsRequest::options |
Optional parameters.
The default value is an empty map.
Definition at line 685 of file insert_records.h.
std::string gpudb::RawInsertRecordsRequest::tableName |
Name of table to which the records are to be added, in [ schema_name. ]table_name format, using standard name resolution rules.
Must be an existing table.
Definition at line 512 of file insert_records.h.