public static interface BigQueryServices.JobService
extends java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
JobStatistics |
dryRunQuery(java.lang.String projectId,
JobConfigurationQuery queryConfig,
@Nullable java.lang.String location)
Dry runs the query in the given project.
|
Job |
getJob(JobReference jobRef)
Gets the specified
Job by the given JobReference. |
Job |
pollJob(JobReference jobRef,
int maxAttempts)
Waits for the job is Done, and returns the job.
|
void |
startCopyJob(JobReference jobRef,
JobConfigurationTableCopy copyConfig)
Start a BigQuery copy job.
|
void |
startExtractJob(JobReference jobRef,
JobConfigurationExtract extractConfig)
Start a BigQuery extract job.
|
void |
startLoadJob(JobReference jobRef,
JobConfigurationLoad loadConfig)
Start a BigQuery load job.
|
void |
startLoadJob(JobReference jobRef,
JobConfigurationLoad loadConfig,
com.google.api.client.http.AbstractInputStreamContent streamContent)
Start a BigQuery load job with stream content.
|
void |
startQueryJob(JobReference jobRef,
JobConfigurationQuery query)
Start a BigQuery query job.
|
void startLoadJob(JobReference jobRef, JobConfigurationLoad loadConfig) throws java.lang.InterruptedException, java.io.IOException
java.lang.InterruptedExceptionjava.io.IOExceptionvoid startLoadJob(JobReference jobRef, JobConfigurationLoad loadConfig, com.google.api.client.http.AbstractInputStreamContent streamContent) throws java.lang.InterruptedException, java.io.IOException
java.lang.InterruptedExceptionjava.io.IOExceptionvoid startExtractJob(JobReference jobRef, JobConfigurationExtract extractConfig) throws java.lang.InterruptedException, java.io.IOException
java.lang.InterruptedExceptionjava.io.IOExceptionvoid startQueryJob(JobReference jobRef, JobConfigurationQuery query) throws java.io.IOException, java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionvoid startCopyJob(JobReference jobRef, JobConfigurationTableCopy copyConfig) throws java.io.IOException, java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionJob pollJob(JobReference jobRef, int maxAttempts) throws java.lang.InterruptedException
Returns null if the maxAttempts retries reached.
java.lang.InterruptedExceptionJobStatistics dryRunQuery(java.lang.String projectId, JobConfigurationQuery queryConfig, @Nullable java.lang.String location) throws java.lang.InterruptedException, java.io.IOException
java.lang.InterruptedExceptionjava.io.IOExceptionJob getJob(JobReference jobRef) throws java.io.IOException, java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedException