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

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

#include <gpudb/protocol/insert_records_from_query.h>

Public Member Functions

 InsertRecordsFromQueryRequest ()
 Constructs an InsertRecordsFromQueryRequest object with default parameters. More...
 
 InsertRecordsFromQueryRequest (const std::string &tableName_, const std::string &remoteQuery_, 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 InsertRecordsFromQueryRequest 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 remoteQuery
 Query for which result data needs to be imported. 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::insertRecordsFromQuery.

Computes remote query result and inserts the result data into a new or existing table

Definition at line 19 of file insert_records_from_query.h.

Constructor & Destructor Documentation

◆ InsertRecordsFromQueryRequest() [1/2]

gpudb::InsertRecordsFromQueryRequest::InsertRecordsFromQueryRequest ( )
inline

Constructs an InsertRecordsFromQueryRequest object with default parameters.

Definition at line 25 of file insert_records_from_query.h.

◆ InsertRecordsFromQueryRequest() [2/2]

gpudb::InsertRecordsFromQueryRequest::InsertRecordsFromQueryRequest ( const std::string &  tableName_,
const std::string &  remoteQuery_,
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 InsertRecordsFromQueryRequest 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 remote query, and the new table name will have to meet standard table naming criteria.
[in]remoteQuery_Query for which result data needs to be imported
[in]modifyColumns_Not implemented yet. The default value is an empty map.
[in]createTableOptions_Options used when creating the target table. The default value is an empty map.
[in]options_Optional parameters. The default value is an empty map.

Definition at line 636 of file insert_records_from_query.h.

Member Data Documentation

◆ createTableOptions

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

Options used when creating the target table.

The default value is an empty map.

Definition at line 834 of file insert_records_from_query.h.

◆ modifyColumns

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

Not implemented yet.

The default value is an empty map.

Definition at line 667 of file insert_records_from_query.h.

◆ options

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

Optional parameters.

The default value is an empty map.

Definition at line 1070 of file insert_records_from_query.h.

◆ remoteQuery

std::string gpudb::InsertRecordsFromQueryRequest::remoteQuery

Query for which result data needs to be imported.

Definition at line 662 of file insert_records_from_query.h.

◆ tableName

std::string gpudb::InsertRecordsFromQueryRequest::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 remote query, and the new table name will have to meet standard table naming criteria.

Definition at line 657 of file insert_records_from_query.h.


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