27 options(std::map<std::string, std::string>())
44 GetJobRequest(
const int64_t jobId_,
const std::map<std::string, std::string>& options_):
64 std::map<std::string, std::string>
options;
70 template<>
struct codec_traits<
gpudb::GetJobRequest>
74 ::avro::encode(e, v.
jobId);
80 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
82 const std::vector<size_t> fo = rd->fieldOrder();
84 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
89 ::avro::decode(d, v.
jobId);
103 ::avro::decode(d, v.
jobId);
130 statusMap(std::map<std::string, std::string>()),
131 info(std::map<std::string, std::string>())
216 std::map<std::string, std::string>
info;
222 template<>
struct codec_traits<
gpudb::GetJobResponse>
235 ::avro::encode(e, v.
info);
240 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
242 const std::vector<size_t> fo = rd->fieldOrder();
244 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
285 ::avro::decode(d, v.
info);
304 ::avro::decode(d, v.
info);
310 #endif // __GET_JOB_H__ GetJobRequest()
Constructs a GetJobRequest object with default parameters.
std::string jobResponseStr
The json-encoded response of the job.
std::string endpoint
The endpoint which is being executed asynchronously.
std::string jobStatus
Status of the submitted job.
std::string responseEncoding
The encoding of the job result (contained in jobResponse or jobResponseStr.
std::map< std::string, std::string > options
Optional parameters.
GetJobRequest(const int64_t jobId_, const std::map< std::string, std::string > &options_)
Constructs a GetJobRequest object with the specified parameters.
bool running
True if the end point is still executing.
int32_t progress
Approximate percentage of the job completed.
std::vector< uint8_t > jobResponse
The binary-encoded response of the job.
bool successful
True if the job execution completed and no errors were encountered.
std::map< std::string, std::string > info
Additional information.
std::map< std::string, std::string > statusMap
Map of various status strings for the executed job.
A set of parameters for GPUdb::getJob.
GetJobResponse()
Constructs a GetJobResponse object with default parameters.
int64_t jobId
A unique identifier for the job whose status and result is to be fetched.
A set of results returned by GPUdb::getJob.