Interface BigQueryServices.JobService
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
FakeJobService
- Enclosing interface:
- BigQueryServices
public static interface BigQueryServices.JobService extends java.lang.AutoCloseableAn interface for the Cloud BigQuery load service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.api.services.bigquery.model.JobStatisticsdryRunQuery(java.lang.String projectId, com.google.api.services.bigquery.model.JobConfigurationQuery queryConfig, @Nullable java.lang.String location)Dry runs the query in the given project.com.google.api.services.bigquery.model.JobgetJob(com.google.api.services.bigquery.model.JobReference jobRef)Gets the specifiedJobby the givenJobReference.com.google.api.services.bigquery.model.JobpollJob(com.google.api.services.bigquery.model.JobReference jobRef, int maxAttempts)Waits for the job is Done, and returns the job.voidstartCopyJob(com.google.api.services.bigquery.model.JobReference jobRef, com.google.api.services.bigquery.model.JobConfigurationTableCopy copyConfig)Start a BigQuery copy job.voidstartExtractJob(com.google.api.services.bigquery.model.JobReference jobRef, com.google.api.services.bigquery.model.JobConfigurationExtract extractConfig)Start a BigQuery extract job.voidstartLoadJob(com.google.api.services.bigquery.model.JobReference jobRef, com.google.api.services.bigquery.model.JobConfigurationLoad loadConfig)Start a BigQuery load job.voidstartLoadJob(com.google.api.services.bigquery.model.JobReference jobRef, com.google.api.services.bigquery.model.JobConfigurationLoad loadConfig, com.google.api.client.http.AbstractInputStreamContent streamContent)Start a BigQuery load job with stream content.voidstartQueryJob(com.google.api.services.bigquery.model.JobReference jobRef, com.google.api.services.bigquery.model.JobConfigurationQuery query)Start a BigQuery query job.
-
-
-
Method Detail
-
startLoadJob
void startLoadJob(com.google.api.services.bigquery.model.JobReference jobRef, com.google.api.services.bigquery.model.JobConfigurationLoad loadConfig) throws java.lang.InterruptedException, java.io.IOExceptionStart a BigQuery load job.- Throws:
java.lang.InterruptedExceptionjava.io.IOException
-
startLoadJob
void startLoadJob(com.google.api.services.bigquery.model.JobReference jobRef, com.google.api.services.bigquery.model.JobConfigurationLoad loadConfig, com.google.api.client.http.AbstractInputStreamContent streamContent) throws java.lang.InterruptedException, java.io.IOExceptionStart a BigQuery load job with stream content.- Throws:
java.lang.InterruptedExceptionjava.io.IOException
-
startExtractJob
void startExtractJob(com.google.api.services.bigquery.model.JobReference jobRef, com.google.api.services.bigquery.model.JobConfigurationExtract extractConfig) throws java.lang.InterruptedException, java.io.IOExceptionStart a BigQuery extract job.- Throws:
java.lang.InterruptedExceptionjava.io.IOException
-
startQueryJob
void startQueryJob(com.google.api.services.bigquery.model.JobReference jobRef, com.google.api.services.bigquery.model.JobConfigurationQuery query) throws java.io.IOException, java.lang.InterruptedExceptionStart a BigQuery query job.- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
startCopyJob
void startCopyJob(com.google.api.services.bigquery.model.JobReference jobRef, com.google.api.services.bigquery.model.JobConfigurationTableCopy copyConfig) throws java.io.IOException, java.lang.InterruptedExceptionStart a BigQuery copy job.- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
pollJob
com.google.api.services.bigquery.model.Job pollJob(com.google.api.services.bigquery.model.JobReference jobRef, int maxAttempts) throws java.lang.InterruptedExceptionWaits for the job is Done, and returns the job.Returns null if the
maxAttemptsretries reached.- Throws:
java.lang.InterruptedException
-
dryRunQuery
com.google.api.services.bigquery.model.JobStatistics dryRunQuery(java.lang.String projectId, com.google.api.services.bigquery.model.JobConfigurationQuery queryConfig, @Nullable java.lang.String location) throws java.lang.InterruptedException, java.io.IOExceptionDry runs the query in the given project.- Throws:
java.lang.InterruptedExceptionjava.io.IOException
-
getJob
com.google.api.services.bigquery.model.Job getJob(com.google.api.services.bigquery.model.JobReference jobRef) throws java.io.IOException, java.lang.InterruptedExceptionGets the specifiedJobby the givenJobReference.Returns null if the job is not found.
- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
-