Package com.google.cloud.bigquery
Class JobInfo
java.lang.Object
com.google.cloud.bigquery.JobInfo
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Job
Google BigQuery Job information. Jobs are objects that manage asynchronous tasks such as running
queries, loading data, and exporting data. Use
CopyJobConfiguration
for a job that copies
an existing table. Use ExtractJobConfiguration
for a job that exports a table to Google
Cloud Storage. Use LoadJobConfiguration
for a job that loads data from Google Cloud
Storage into a table. Use QueryJobConfiguration
for a job that runs a query.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder forJobInfo
objects.static enum
Specifies whether the job is allowed to create new tables.static enum
Specifies options relating to allowing the schema of the destination table to be updated as a side effect of the load or query job.static enum
Specifies the action that occurs if the destination table already exists. -
Method Summary
Modifier and TypeMethodDescriptionboolean
<C extends JobConfiguration>
CReturns the job's configuration.getEtag()
Returns the hash of the job resource.Returns the service-generated id for the job.getJobId()
Returns the job identity.Returns an URL that can be used to access the resource again.<S extends JobStatistics>
SReturns information about the job, including starting time and ending time of the job.Returns the status of this job.Returns the email address of the user who ran the job.int
hashCode()
static JobInfo.Builder
newBuilder
(JobConfiguration configuration) Returns a builder for aJobInfo
object given the job configuration.static JobInfo
of
(JobConfiguration configuration) Returns aJobInfo
object given the job configuration.static JobInfo
of
(JobId jobId, JobConfiguration configuration) Returns a builder for aJobInfo
object given the job identity and configuration.Returns a builder for the job object.toString()
-
Method Details
-
getEtag
Returns the hash of the job resource. -
getGeneratedId
Returns the service-generated id for the job. -
getJobId
Returns the job identity. -
getSelfLink
Returns an URL that can be used to access the resource again. The returned URL can be used for GET requests. -
getStatus
Returns the status of this job. Examine this value when polling an asynchronous job to see if the job is complete. -
getStatistics
Returns information about the job, including starting time and ending time of the job. -
getUserEmail
Returns the email address of the user who ran the job. -
getConfiguration
Returns the job's configuration. -
toBuilder
Returns a builder for the job object. -
toString
-
hashCode
public int hashCode() -
equals
-
newBuilder
Returns a builder for aJobInfo
object given the job configuration. UseCopyJobConfiguration
for a job that copies an existing table. UseExtractJobConfiguration
for a job that exports a table to Google Cloud Storage. UseLoadJobConfiguration
for a job that loads data from Google Cloud Storage into a table. UseQueryJobConfiguration
for a job that runs a query. -
of
Returns aJobInfo
object given the job configuration. UseCopyJobConfiguration
for a job that copies an existing table. UseExtractJobConfiguration
for a job that exports a table to Google Cloud Storage. UseLoadJobConfiguration
for a job that loads data from Google Cloud Storage into a table. UseQueryJobConfiguration
for a job that runs a query. -
of
Returns a builder for aJobInfo
object given the job identity and configuration. UseCopyJobConfiguration
for a job that copies an existing table. UseExtractJobConfiguration
for a job that exports a table to Google Cloud Storage. UseLoadJobConfiguration
for a job that loads data from Google Cloud Storage into a table. UseQueryJobConfiguration
for a job that runs a query.
-