Package com.google.cloud.bigquery
Class JobStatus
- java.lang.Object
-
- com.google.cloud.bigquery.JobStatus
-
- All Implemented Interfaces:
Serializable
public class JobStatus extends Object implements Serializable
A Google BigQuery Job status. Objects of this class can be examined when polling an asynchronous job to see if the job completed.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JobStatus.State
Possible states that a BigQuery Job can assume.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
BigQueryError
getError()
Returns the final error result of the job.List<BigQueryError>
getExecutionErrors()
Returns all errors encountered during the running of the job.JobStatus.State
getState()
Returns the state of the job.int
hashCode()
String
toString()
-
-
-
Method Detail
-
getState
public JobStatus.State getState()
Returns the state of the job. AJobStatus.State.PENDING
job is waiting to be executed. AJobStatus.State.RUNNING
is being executed. AJobStatus.State.DONE
job has completed either succeeding or failing. If failedgetError()
will be non-null.
-
getError
@Nullable public BigQueryError getError()
Returns the final error result of the job. If present, indicates that the job has completed and was unsuccessful.- See Also:
- Troubleshooting Errors
-
getExecutionErrors
public List<BigQueryError> getExecutionErrors()
Returns all errors encountered during the running of the job. Errors here do not necessarily mean that the job has completed or was unsuccessful.- See Also:
- Troubleshooting Errors
-
-