public class GetJobResponse extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.getJob
.Modifier and Type | Class and Description |
---|---|
static class |
GetJobResponse.JobStatus
A set of string constants for the
GetJobResponse parameter
jobStatus . |
static class |
GetJobResponse.ResponseEncoding
A set of string constants for the
GetJobResponse parameter
responseEncoding . |
static class |
GetJobResponse.StatusMap
A set of string constants for the
GetJobResponse parameter
statusMap . |
Constructor and Description |
---|
GetJobResponse()
Constructs a GetJobResponse object with default parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getEndpoint()
The endpoint which is being executed asynchronously.
|
Map<String,String> |
getInfo()
Additional information.
|
ByteBuffer |
getJobResponse()
The binary-encoded response of the job.
|
String |
getJobResponseStr()
The json-encoded response of the job.
|
String |
getJobStatus()
Status of the submitted job.
|
int |
getProgress()
Approximate percentage of the job completed.
|
String |
getResponseEncoding()
The encoding of the job result (contained in
jobResponse or jobResponseStr . |
boolean |
getRunning()
True if the end point is still executing.
|
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
Map<String,String> |
getStatusMap()
Map of various status strings for the executed job.
|
boolean |
getSuccessful()
True if the job execution completed and no errors were encountered.
|
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
GetJobResponse |
setEndpoint(String endpoint)
The endpoint which is being executed asynchronously.
|
GetJobResponse |
setInfo(Map<String,String> info)
Additional information.
|
GetJobResponse |
setJobResponse(ByteBuffer jobResponse)
The binary-encoded response of the job.
|
GetJobResponse |
setJobResponseStr(String jobResponseStr)
The json-encoded response of the job.
|
GetJobResponse |
setJobStatus(String jobStatus)
Status of the submitted job.
|
GetJobResponse |
setProgress(int progress)
Approximate percentage of the job completed.
|
GetJobResponse |
setResponseEncoding(String responseEncoding)
The encoding of the job result (contained in
jobResponse or jobResponseStr . |
GetJobResponse |
setRunning(boolean running)
True if the end point is still executing.
|
GetJobResponse |
setStatusMap(Map<String,String> statusMap)
Map of various status strings for the executed job.
|
GetJobResponse |
setSuccessful(boolean successful)
True if the job execution completed and no errors were encountered.
|
String |
toString() |
public GetJobResponse()
public static org.apache.avro.Schema getClassSchema()
public String getEndpoint()
endpoint
.public GetJobResponse setEndpoint(String endpoint)
endpoint
- The new value for endpoint
.this
to mimic the builder pattern.public String getJobStatus()
RUNNING
: The job is currently
executing.
DONE
: The job execution has successfully
completed and the response is included in the jobResponse
or jobResponseStr
field
ERROR
: The job was attempted, but an
error was encountered. The statusMap
contains the details of the error in error_message
CANCELLED
: Job cancellation was
requested while the execution was in progress.
jobStatus
.public GetJobResponse setJobStatus(String jobStatus)
RUNNING
: The job is currently
executing.
DONE
: The job execution has successfully
completed and the response is included in the jobResponse
or jobResponseStr
field
ERROR
: The job was attempted, but an
error was encountered. The statusMap
contains the details of the error in error_message
CANCELLED
: Job cancellation was
requested while the execution was in progress.
jobStatus
- The new value for jobStatus
.this
to mimic the builder pattern.public boolean getRunning()
running
.public GetJobResponse setRunning(boolean running)
running
- The new value for running
.this
to mimic the builder pattern.public int getProgress()
progress
.public GetJobResponse setProgress(int progress)
progress
- The new value for progress
.this
to mimic the builder pattern.public boolean getSuccessful()
successful
.public GetJobResponse setSuccessful(boolean successful)
successful
- The new value for successful
.this
to mimic the builder pattern.public String getResponseEncoding()
jobResponse
or jobResponseStr
.
Supported values:
BINARY
: The job result is
binary-encoded. It is contained in jobResponse
.
JSON
: The job result is
json-encoded. It is contained in jobResponseStr
.
responseEncoding
.public GetJobResponse setResponseEncoding(String responseEncoding)
jobResponse
or jobResponseStr
.
Supported values:
BINARY
: The job result is
binary-encoded. It is contained in jobResponse
.
JSON
: The job result is
json-encoded. It is contained in jobResponseStr
.
responseEncoding
- The new value for responseEncoding
.this
to mimic the builder pattern.public ByteBuffer getJobResponse()
responseEncoding
is BINARY
jobResponse
.public GetJobResponse setJobResponse(ByteBuffer jobResponse)
responseEncoding
is BINARY
jobResponse
- The new value for jobResponse
.this
to mimic the builder pattern.public String getJobResponseStr()
responseEncoding
is JSON
jobResponseStr
.public GetJobResponse setJobResponseStr(String jobResponseStr)
responseEncoding
is JSON
jobResponseStr
- The new value for jobResponseStr
.this
to mimic the builder pattern.public Map<String,String> getStatusMap()
ERROR_MESSAGE
: Explains what
error occurred while running the job asynchronously. This entry
only exists when the job status is ERROR
.
statusMap
.public GetJobResponse setStatusMap(Map<String,String> statusMap)
ERROR_MESSAGE
: Explains what
error occurred while running the job asynchronously. This entry
only exists when the job status is ERROR
.
statusMap
- The new value for statusMap
.this
to mimic the builder pattern.public Map<String,String> getInfo()
info
.public GetJobResponse setInfo(Map<String,String> info)
info
- The new value for info
.this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2025. All rights reserved.