Package com.google.cloud.bigquery
Class JobInfo
- java.lang.Object
-
- com.google.cloud.bigquery.JobInfo
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Job
public class JobInfo extends Object implements Serializable
Google BigQuery Job information. Jobs are objects that manage asynchronous tasks such as running queries, loading data, and exporting data. UseCopyJobConfigurationfor a job that copies an existing table. UseExtractJobConfigurationfor a job that exports a table to Google Cloud Storage. UseLoadJobConfigurationfor a job that loads data from Google Cloud Storage into a table. UseQueryJobConfigurationfor a job that runs a query.- See Also:
- Jobs, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJobInfo.BuilderA builder forJobInfoobjects.static classJobInfo.CreateDispositionSpecifies whether the job is allowed to create new tables.static classJobInfo.SchemaUpdateOptionSpecifies options relating to allowing the schema of the destination table to be updated as a side effect of the load or query job.static classJobInfo.WriteDispositionSpecifies the action that occurs if the destination table already exists.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)<C extends JobConfiguration>
CgetConfiguration()Returns the job's configuration.StringgetEtag()Returns the hash of the job resource.StringgetGeneratedId()Returns the service-generated id for the job.JobIdgetJobId()Returns the job identity.StringgetSelfLink()Returns an URL that can be used to access the resource again.<S extends JobStatistics>
SgetStatistics()Returns information about the job, including starting time and ending time of the job.JobStatusgetStatus()Returns the status of this job.StringgetUserEmail()Returns the email address of the user who ran the job.inthashCode()static JobInfo.BuildernewBuilder(JobConfiguration configuration)Returns a builder for aJobInfoobject given the job configuration.static JobInfoof(JobConfiguration configuration)Returns aJobInfoobject given the job configuration.static JobInfoof(JobId jobId, JobConfiguration configuration)Returns a builder for aJobInfoobject given the job identity and configuration.JobInfo.BuildertoBuilder()Returns a builder for the job object.StringtoString()
-
-
-
Method Detail
-
getEtag
public String getEtag()
Returns the hash of the job resource.
-
getGeneratedId
public String getGeneratedId()
Returns the service-generated id for the job.
-
getJobId
public JobId getJobId()
Returns the job identity.
-
getSelfLink
public String getSelfLink()
Returns an URL that can be used to access the resource again. The returned URL can be used for GET requests.
-
getStatus
public JobStatus getStatus()
Returns the status of this job. Examine this value when polling an asynchronous job to see if the job is complete.
-
getStatistics
public <S extends JobStatistics> S getStatistics()
Returns information about the job, including starting time and ending time of the job.
-
getUserEmail
public String getUserEmail()
Returns the email address of the user who ran the job.
-
getConfiguration
public <C extends JobConfiguration> C getConfiguration()
Returns the job's configuration.
-
toBuilder
public JobInfo.Builder toBuilder()
Returns a builder for the job object.
-
newBuilder
public static JobInfo.Builder newBuilder(JobConfiguration configuration)
Returns a builder for aJobInfoobject given the job configuration. UseCopyJobConfigurationfor a job that copies an existing table. UseExtractJobConfigurationfor a job that exports a table to Google Cloud Storage. UseLoadJobConfigurationfor a job that loads data from Google Cloud Storage into a table. UseQueryJobConfigurationfor a job that runs a query.
-
of
public static JobInfo of(JobConfiguration configuration)
Returns aJobInfoobject given the job configuration. UseCopyJobConfigurationfor a job that copies an existing table. UseExtractJobConfigurationfor a job that exports a table to Google Cloud Storage. UseLoadJobConfigurationfor a job that loads data from Google Cloud Storage into a table. UseQueryJobConfigurationfor a job that runs a query.
-
of
public static JobInfo of(JobId jobId, JobConfiguration configuration)
Returns a builder for aJobInfoobject given the job identity and configuration. UseCopyJobConfigurationfor a job that copies an existing table. UseExtractJobConfigurationfor a job that exports a table to Google Cloud Storage. UseLoadJobConfigurationfor a job that loads data from Google Cloud Storage into a table. UseQueryJobConfigurationfor a job that runs a query.
-
-