GPUdb C++ API
Version 7.2.2.4
|
A set of parameters for GPUdb::createJob. More...
#include <gpudb/protocol/create_job.h>
Public Member Functions | |
CreateJobRequest () | |
Constructs a CreateJobRequest object with default parameters. More... | |
CreateJobRequest (const std::string &endpoint_, const std::string &requestEncoding_, const std::vector< uint8_t > &data_, const std::string &dataStr_, const std::map< std::string, std::string > &options_) | |
Constructs a CreateJobRequest object with the specified parameters. More... | |
Public Attributes | |
std::string | endpoint |
Indicates which endpoint to execute, e.g. '/alter/table'. More... | |
std::string | requestEncoding |
The encoding of the request payload for the job. More... | |
std::vector< uint8_t > | data |
Binary-encoded payload for the job to be run asynchronously. More... | |
std::string | dataStr |
JSON-encoded payload for the job to be run asynchronously. More... | |
std::map< std::string, std::string > | options |
Optional parameters. More... | |
A set of parameters for GPUdb::createJob.
Create a job which will run asynchronously. The response returns a job ID, which can be used to query the status and result of the job. The status and the result of the job upon completion can be requested by GPUdb::getJob.
Definition at line 20 of file create_job.h.
|
inline |
Constructs a CreateJobRequest object with default parameters.
Definition at line 25 of file create_job.h.
|
inline |
Constructs a CreateJobRequest object with the specified parameters.
[in] | endpoint_ | Indicates which endpoint to execute, e.g. '/alter/table'. |
[in] | requestEncoding_ | The encoding of the request payload for the job. Supported values: The default value is create_job_binary. |
[in] | data_ | Binary-encoded payload for the job to be run asynchronously. The payload must contain the relevant input parameters for the endpoint indicated in endpoint_. Please see the documentation for the appropriate endpoint to see what values must (or can) be specified. If this parameter is used, then requestEncoding_ must be binary or snappy. |
[in] | dataStr_ | JSON-encoded payload for the job to be run asynchronously. The payload must contain the relevant input parameters for the endpoint indicated in endpoint_. Please see the documentation for the appropriate endpoint to see what values must (or can) be specified. If this parameter is used, then requestEncoding_ must be json. |
[in] | options_ | Optional parameters.
|
Definition at line 92 of file create_job.h.
std::vector<uint8_t> gpudb::CreateJobRequest::data |
Binary-encoded payload for the job to be run asynchronously.
The payload must contain the relevant input parameters for the endpoint indicated in endpoint. Please see the documentation for the appropriate endpoint to see what values must (or can) be specified. If this parameter is used, then requestEncoding must be binary or snappy.
Definition at line 128 of file create_job.h.
std::string gpudb::CreateJobRequest::dataStr |
JSON-encoded payload for the job to be run asynchronously.
The payload must contain the relevant input parameters for the endpoint indicated in endpoint. Please see the documentation for the appropriate endpoint to see what values must (or can) be specified. If this parameter is used, then requestEncoding must be json.
Definition at line 138 of file create_job.h.
std::string gpudb::CreateJobRequest::endpoint |
Indicates which endpoint to execute, e.g. '/alter/table'.
Definition at line 104 of file create_job.h.
std::map<std::string, std::string> gpudb::CreateJobRequest::options |
Optional parameters.
The default value is an empty map.
Definition at line 157 of file create_job.h.
std::string gpudb::CreateJobRequest::requestEncoding |
The encoding of the request payload for the job.
Supported values:
The default value is create_job_binary.
Definition at line 117 of file create_job.h.