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 TypeMethodDescriptiondryRunQuery(String projectId, JobConfigurationQuery queryConfig, @Nullable String location) Dry runs the query in the given project.getJob(JobReference jobRef) Gets the specifiedJobby the givenJobReference.pollJob(JobReference jobRef, int maxAttempts) Waits for the job is Done, and returns the job.voidstartCopyJob(JobReference jobRef, JobConfigurationTableCopy copyConfig) Start a BigQuery copy job.voidstartExtractJob(JobReference jobRef, JobConfigurationExtract extractConfig) Start a BigQuery extract job.voidstartLoadJob(JobReference jobRef, JobConfigurationLoad loadConfig) Start a BigQuery load job.voidstartLoadJob(JobReference jobRef, JobConfigurationLoad loadConfig, com.google.api.client.http.AbstractInputStreamContent streamContent) Start a BigQuery load job with stream content.voidstartQueryJob(JobReference jobRef, JobConfigurationQuery query) Start a BigQuery query job.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
startLoadJob
void startLoadJob(JobReference jobRef, JobConfigurationLoad loadConfig) throws InterruptedException, IOException Start a BigQuery load job.- Throws:
InterruptedExceptionIOException
-
startLoadJob
void startLoadJob(JobReference jobRef, 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(JobReference jobRef, JobConfigurationExtract extractConfig) throws InterruptedException, IOException Start a BigQuery extract job.- Throws:
InterruptedExceptionIOException
-
startQueryJob
void startQueryJob(JobReference jobRef, JobConfigurationQuery query) throws IOException, InterruptedException Start a BigQuery query job.- Throws:
IOExceptionInterruptedException
-
startCopyJob
void startCopyJob(JobReference jobRef, JobConfigurationTableCopy copyConfig) throws IOException, InterruptedException Start a BigQuery copy job.- Throws:
IOExceptionInterruptedException
-
pollJob
Waits for the job is Done, and returns the job.Returns null if the
maxAttemptsretries reached.- Throws:
InterruptedException
-
dryRunQuery
JobStatistics dryRunQuery(String projectId, JobConfigurationQuery queryConfig, @Nullable String location) throws InterruptedException, IOException Dry runs the query in the given project.- Throws:
InterruptedExceptionIOException
-
getJob
- Throws:
IOExceptionInterruptedException
-