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 bygetJob.Parameters:request-Requestobject containing the parameters for the operation.Returns:Responseobject containing the results of the operation.Throws:GPUdbException- if an error occurs during the operation.createJob
public CreateJobResponse createJob(String endpoint, String requestEncoding, ByteBuffer data, String dataStr, Map<String, String> options) throws GPUdbException 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 bygetJob.Parameters:endpoint- Indicates which endpoint to execute, e.g. ‘/alter/table’.requestEncoding- The encoding of the request payload for the job. Supported values:The default value isBINARY.data- Binary-encoded payload for the job to be run asynchronously. The payload must contain the relevant input parameters for the endpoint indicated inendpoint. Please see the documentation for the appropriate endpoint to see what values must (or can) be specified. If this parameter is used, thenrequestEncodingmust beBINARYorSNAPPY.dataStr- JSON-encoded payload for the job to be run asynchronously. The payload must contain the relevant input parameters for the endpoint indicated inendpoint. Please see the documentation for the appropriate endpoint to see what values must (or can) be specified. If this parameter is used, thenrequestEncodingmust beJSON.options- Optional parameters.JOB_TAG: Tag to use for submitted job. The same tag could be used on backup cluster to retrieve response for the job. Tags can use letter, numbers, ’_’ and ’-’.
Map.Returns:Responseobject containing the results of the operation.Throws:GPUdbException- if an error occurs during the operation.