Package com.gpudb.protocol
Class GetJobResponse
java.lang.Object
com.gpudb.protocol.GetJobResponse
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordA set of results returned by
GPUdb.getJob.Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theGetJobResponseparameterjobStatus.static final classA set of string constants for theGetJobResponseparameterresponseEncoding.static final classA set of string constants for theGetJobResponseparameterstatusMap.Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.The endpoint which is being executed asynchronously.getInfo()Additional information.The binary-encoded response of the job.The json-encoded response of the job.Status of the submitted job.intApproximate percentage of the job completed.The encoding of the job result (contained injobResponseorjobResponseStr.booleanTrue if the end point is still executing.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.Map of various status strings for the executed job.booleanTrue if the job execution completed and no errors were encountered.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setEndpoint(String endpoint) The endpoint which is being executed asynchronously.Additional information.setJobResponse(ByteBuffer jobResponse) The binary-encoded response of the job.setJobResponseStr(String jobResponseStr) The json-encoded response of the job.setJobStatus(String jobStatus) Status of the submitted job.setProgress(int progress) Approximate percentage of the job completed.setResponseEncoding(String responseEncoding) The encoding of the job result (contained injobResponseorjobResponseStr.setRunning(boolean running) True if the end point is still executing.setStatusMap(Map<String, String> statusMap) Map of various status strings for the executed job.setSuccessful(boolean successful) True if the job execution completed and no errors were encountered.toString()
Method Details
getClassSchema
public static org.apache.avro.Schema getClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.Returns:The schema for the class.setEndpoint
The endpoint which is being executed asynchronously. E.g. ‘/alter/table’.Parameters:endpoint- The new value forendpoint.Returns:thisto mimic the builder pattern.getJobStatus
Status of the submitted job. Supported values:RUNNING: The job is currently executing.DONE: The job execution has successfully completed and the response is included in thejobResponseorjobResponseStrfield.ERROR: The job was attempted, but an error was encountered. ThestatusMapcontains the details of the error in error_message.CANCELLED: Job cancellation was requested while the execution was in progress.
Returns:The current value ofjobStatus.setJobStatus
Status of the submitted job. Supported values:RUNNING: The job is currently executing.DONE: The job execution has successfully completed and the response is included in thejobResponseorjobResponseStrfield.ERROR: The job was attempted, but an error was encountered. ThestatusMapcontains the details of the error in error_message.CANCELLED: Job cancellation was requested while the execution was in progress.
Parameters:jobStatus- The new value forjobStatus.Returns:thisto mimic the builder pattern.getRunning
public boolean getRunning()True if the end point is still executing.Returns:The current value ofrunning.setRunning
True if the end point is still executing.Parameters:running- The new value forrunning.Returns:thisto mimic the builder pattern.getProgress
public int getProgress()Approximate percentage of the job completed.Returns:The current value ofprogress.setProgress
Approximate percentage of the job completed.Parameters:progress- The new value forprogress.Returns:thisto mimic the builder pattern.getSuccessful
public boolean getSuccessful()True if the job execution completed and no errors were encountered.Returns:The current value ofsuccessful.setSuccessful
True if the job execution completed and no errors were encountered.Parameters:successful- The new value forsuccessful.Returns:thisto mimic the builder pattern.getResponseEncoding
The encoding of the job result (contained injobResponseorjobResponseStr. Supported values:BINARY: The job result is binary-encoded. It is contained injobResponse.JSON: The job result is JSON-encoded. It is contained injobResponseStr.
Returns:The current value ofresponseEncoding.setResponseEncoding
The encoding of the job result (contained injobResponseorjobResponseStr. Supported values:BINARY: The job result is binary-encoded. It is contained injobResponse.JSON: The job result is JSON-encoded. It is contained injobResponseStr.
Parameters:responseEncoding- The new value forresponseEncoding.Returns:thisto mimic the builder pattern.getJobResponse
The binary-encoded response of the job. This field is populated only when the job has completed andresponseEncodingisBINARY.Returns:The current value ofjobResponse.setJobResponse
The binary-encoded response of the job. This field is populated only when the job has completed andresponseEncodingisBINARY.Parameters:jobResponse- The new value forjobResponse.Returns:thisto mimic the builder pattern.getJobResponseStr
The json-encoded response of the job. This field is populated only when the job has completed andresponseEncodingisJSON.Returns:The current value ofjobResponseStr.setJobResponseStr
The json-encoded response of the job. This field is populated only when the job has completed andresponseEncodingisJSON.Parameters:jobResponseStr- The new value forjobResponseStr.Returns:thisto mimic the builder pattern.setStatusMap
Map of various status strings for the executed job.ERROR_MESSAGE: Explains what error occurred while running the job asynchronously. This entry only exists when the job status isERROR.
Parameters:statusMap- The new value forstatusMap.Returns:thisto mimic the builder pattern.setInfo
Additional information.Parameters:info- The new value forinfo.Returns:thisto mimic the builder pattern.getSchema
public org.apache.avro.Schema getSchema()This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getSchemain interfaceorg.apache.avro.generic.GenericContainerReturns:The schema object describing this class.get
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to getReturns:value of the field with the given index.Throws:put
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:putin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to setvalue- the value to setThrows: