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 classJobStatus.StatePossible states that a BigQuery Job can assume.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)BigQueryErrorgetError()Returns the final error result of the job.List<BigQueryError>getExecutionErrors()Returns all errors encountered during the running of the job.JobStatus.StategetState()Returns the state of the job.inthashCode()StringtoString()
-
-
-
Method Detail
-
getState
public JobStatus.State getState()
Returns the state of the job. AJobStatus.State.PENDINGjob is waiting to be executed. AJobStatus.State.RUNNINGis being executed. AJobStatus.State.DONEjob 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
-
-