Skip to main content

◆ insertRecordsFromPayload() [1/4]

InsertRecordsFromPayloadResponse gpudb::GPUdb::insertRecordsFromPayload (const InsertRecordsFromPayloadRequest &request_) const

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.

Parameters
[in]request_Request object containing the parameters for the operation.
Returns
Response object containing the result of the operation.

◆ insertRecordsFromPayload() [2/4]

InsertRecordsFromPayloadResponse & gpudb::GPUdb::insertRecordsFromPayload (const InsertRecordsFromPayloadRequest &request_,
InsertRecordsFromPayloadResponse &response_ ) const

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.

Parameters
[in]request_Request object containing the parameters for the operation.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).

◆ insertRecordsFromPayload() [3/4]

InsertRecordsFromPayloadResponse gpudb::GPUdb::insertRecordsFromPayload (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 ) const

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.

Parameters
[in]tableNameName 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]dataTextRecords formatted as delimited text.
[in]dataBytesRecords formatted as binary data.
[in]modifyColumnsNot implemented yet. The default value is an empty map.
[in]createTableOptionsOptions used when creating the target table. Includes type to use. The other options match those in createTable.The default value is an empty map.
[in]optionsOptional parameters.The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ insertRecordsFromPayload() [4/4]

InsertRecordsFromPayloadResponse & gpudb::GPUdb::insertRecordsFromPayload (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,
InsertRecordsFromPayloadResponse &response_ ) const

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.

Parameters
[in]tableNameName 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]dataTextRecords formatted as delimited text.
[in]dataBytesRecords formatted as binary data.
[in]modifyColumnsNot implemented yet. The default value is an empty map.
[in]createTableOptionsOptions used when creating the target table. Includes type to use. The other options match those in createTable.The default value is an empty map.
[in]optionsOptional parameters.The default value is an empty map.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).