public class JobInfo extends Object implements Serializable
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.| Modifier and Type | Class and Description |
|---|---|
static class |
JobInfo.Builder
A builder for
JobInfo objects. |
static class |
JobInfo.CreateDisposition
Specifies whether the job is allowed to create new tables.
|
static class |
JobInfo.WriteDisposition
Specifies the action that occurs if the destination table already exists.
|
| Modifier and Type | Method and Description |
|---|---|
static JobInfo.Builder |
builder(JobConfiguration configuration)
Returns a builder for a
JobInfo object given the job configuration. |
<C extends JobConfiguration> |
configuration()
Returns the job's configuration.
|
boolean |
equals(Object obj) |
String |
etag()
Returns the hash of the job resource.
|
String |
generatedId()
Returns the service-generated id for the job.
|
int |
hashCode() |
JobId |
jobId()
Returns the job identity.
|
static JobInfo |
of(JobConfiguration configuration)
Returns a
JobInfo object given the job configuration. |
static JobInfo |
of(JobId jobId,
JobConfiguration configuration)
Returns a builder for a
JobInfo object given the job identity and configuration. |
String |
selfLink()
Returns an URL that can be used to access the resource again.
|
<S extends JobStatistics> |
statistics()
Returns information about the job, including starting time and ending time of the job.
|
JobStatus |
status()
Returns the status of this job.
|
JobInfo.Builder |
toBuilder()
Returns a builder for the job object.
|
String |
toString() |
String |
userEmail()
Returns the email address of the user who ran the job.
|
public String etag()
public String generatedId()
public JobId jobId()
public String selfLink()
public JobStatus status()
public <S extends JobStatistics> S statistics()
public String userEmail()
public <C extends JobConfiguration> C configuration()
public JobInfo.Builder toBuilder()
public static JobInfo.Builder builder(JobConfiguration configuration)
JobInfo object given the job configuration. 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.public static JobInfo of(JobConfiguration configuration)
JobInfo object given the job configuration. 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.public static JobInfo of(JobId jobId, JobConfiguration configuration)
JobInfo object given the job identity and configuration. 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.Copyright © 2016 Google. All rights reserved.