GPUdb C++ API  Version 7.2.2.4
gpudb::InsertRecordsFromPayloadRequest Struct Reference

A set of parameters for GPUdb::insertRecordsFromPayload. More...

#include <gpudb/protocol/insert_records_from_payload.h>

Public Member Functions

 InsertRecordsFromPayloadRequest ()
 Constructs an InsertRecordsFromPayloadRequest object with default parameters. More...
 
 InsertRecordsFromPayloadRequest (const std::string &tableName_, const std::string &dataText_, const std::vector< uint8_t > &dataBytes_, const std::map< std::string, std::map< std::string, std::string > > &modifyColumns_, const std::map< std::string, std::string > &createTableOptions_, const std::map< std::string, std::string > &options_)
 Constructs an InsertRecordsFromPayloadRequest object with the specified parameters. More...
 

Public Attributes

std::string tableName
 Name of the table into which the data will be inserted, in [ schema_name. ]table_name format, using standard name resolution rules. More...
 
std::string dataText
 Records formatted as delimited text. More...
 
std::vector< uint8_t > dataBytes
 Records formatted as binary data. More...
 
std::map< std::string, std::map< std::string, std::string > > modifyColumns
 Not implemented yet. More...
 
std::map< std::string, std::string > createTableOptions
 Options used when creating the target table. More...
 
std::map< std::string, std::string > options
 Optional parameters. More...
 

Detailed Description

A set of parameters for GPUdb::insertRecordsFromPayload.

Reads from the given text-based or binary payload and inserts the data into a new or existing table. The table will be created if it doesn't already exist.

Returns once all records are processed.

Definition at line 22 of file insert_records_from_payload.h.

Constructor & Destructor Documentation

◆ InsertRecordsFromPayloadRequest() [1/2]

gpudb::InsertRecordsFromPayloadRequest::InsertRecordsFromPayloadRequest ( )
inline

Constructs an InsertRecordsFromPayloadRequest object with default parameters.

Definition at line 28 of file insert_records_from_payload.h.

◆ InsertRecordsFromPayloadRequest() [2/2]

gpudb::InsertRecordsFromPayloadRequest::InsertRecordsFromPayloadRequest ( const std::string &  tableName_,
const std::string &  dataText_,
const std::vector< uint8_t > &  dataBytes_,
const std::map< std::string, std::map< std::string, std::string > > &  modifyColumns_,
const std::map< std::string, std::string > &  createTableOptions_,
const std::map< std::string, std::string > &  options_ 
)
inline

Constructs an InsertRecordsFromPayloadRequest object with the specified parameters.

Parameters
[in]tableName_Name of the table into which the data will be inserted, in [schema_name.]table_name format, using standard name resolution rules. If the table does not exist, the table will be created using either an existing type_id or the type inferred from the payload, and the new table name will have to meet standard table naming criteria.
[in]dataText_Records formatted as delimited text
[in]dataBytes_Records formatted as binary data
[in]modifyColumns_Not implemented yet. The default value is an empty map.
[in]createTableOptions_Options used when creating the target table. Includes type to use. The other options match those in GPUdb::createTable. The default value is an empty map.
[in]options_Optional parameters. The default value is an empty map.

Definition at line 1140 of file insert_records_from_payload.h.

Member Data Documentation

◆ createTableOptions

std::map<std::string, std::string> gpudb::InsertRecordsFromPayloadRequest::createTableOptions

Options used when creating the target table.

Includes type to use. The other options match those in GPUdb::createTable.

The default value is an empty map.

Definition at line 1357 of file insert_records_from_payload.h.

◆ dataBytes

std::vector<uint8_t> gpudb::InsertRecordsFromPayloadRequest::dataBytes

Records formatted as binary data.

Definition at line 1171 of file insert_records_from_payload.h.

◆ dataText

std::string gpudb::InsertRecordsFromPayloadRequest::dataText

Records formatted as delimited text.

Definition at line 1166 of file insert_records_from_payload.h.

◆ modifyColumns

std::map<std::string, std::map<std::string, std::string> > gpudb::InsertRecordsFromPayloadRequest::modifyColumns

Not implemented yet.

The default value is an empty map.

Definition at line 1176 of file insert_records_from_payload.h.

◆ options

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

Optional parameters.

The default value is an empty map.

Definition at line 1941 of file insert_records_from_payload.h.

◆ tableName

std::string gpudb::InsertRecordsFromPayloadRequest::tableName

Name of the table into which the data will be inserted, in [ schema_name. ]table_name format, using standard name resolution rules.

If the table does not exist, the table will be created using either an existing type_id or the type inferred from the payload, and the new table name will have to meet standard table naming criteria.

Definition at line 1161 of file insert_records_from_payload.h.


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