Interface BigQueryServices.JobService
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
FakeJobService
- Enclosing interface:
BigQueryServices
An interface for the Cloud BigQuery load service.
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.services.bigquery.model.JobStatisticsdryRunQuery(String projectId, com.google.api.services.bigquery.model.JobConfigurationQuery queryConfig, @Nullable 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.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
startLoadJob
void startLoadJob(com.google.api.services.bigquery.model.JobReference jobRef, com.google.api.services.bigquery.model.JobConfigurationLoad loadConfig) throws InterruptedException, IOException Start a BigQuery load job.- Throws:
InterruptedExceptionIOException
-
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 InterruptedException, IOException Start a BigQuery load job with stream content.- Throws:
InterruptedExceptionIOException
-
startExtractJob
void startExtractJob(com.google.api.services.bigquery.model.JobReference jobRef, com.google.api.services.bigquery.model.JobConfigurationExtract extractConfig) throws InterruptedException, IOException Start a BigQuery extract job.- Throws:
InterruptedExceptionIOException
-
startQueryJob
void startQueryJob(com.google.api.services.bigquery.model.JobReference jobRef, com.google.api.services.bigquery.model.JobConfigurationQuery query) throws IOException, InterruptedException Start a BigQuery query job.- Throws:
IOExceptionInterruptedException
-
startCopyJob
void startCopyJob(com.google.api.services.bigquery.model.JobReference jobRef, com.google.api.services.bigquery.model.JobConfigurationTableCopy copyConfig) throws IOException, InterruptedException Start a BigQuery copy job.- Throws:
IOExceptionInterruptedException
-
pollJob
com.google.api.services.bigquery.model.Job pollJob(com.google.api.services.bigquery.model.JobReference jobRef, int maxAttempts) throws InterruptedException Waits for the job is Done, and returns the job.Returns null if the
maxAttemptsretries reached.- Throws:
InterruptedException
-
dryRunQuery
com.google.api.services.bigquery.model.JobStatistics dryRunQuery(String projectId, com.google.api.services.bigquery.model.JobConfigurationQuery queryConfig, @Nullable String location) throws InterruptedException, IOException Dry runs the query in the given project.- Throws:
InterruptedExceptionIOException
-
getJob
com.google.api.services.bigquery.model.Job getJob(com.google.api.services.bigquery.model.JobReference jobRef) throws IOException, InterruptedException Gets the specifiedJobby the givenJobReference.Returns null if the job is not found.
- Throws:
IOExceptionInterruptedException
-