Class JobInfo (2.41.0)

public class JobInfo implements Serializable

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: Jobs

Inheritance

Object > JobInfo

Implements

Serializable

Static Methods

newBuilder(JobConfiguration configuration)

public static JobInfo.Builder newBuilder(JobConfiguration configuration)

Returns a builder for a 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.

Parameter
Name Description
configuration JobConfiguration
Returns
Type Description
JobInfo.Builder

of(JobConfiguration configuration)

public static JobInfo of(JobConfiguration configuration)

Returns a 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.

Parameter
Name Description
configuration JobConfiguration
Returns
Type Description
JobInfo

of(JobId jobId, JobConfiguration configuration)

public static JobInfo of(JobId jobId, JobConfiguration configuration)

Returns a builder for a 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.

Parameters
Name Description
jobId JobId
configuration JobConfiguration
Returns
Type Description
JobInfo

Methods

<C>getConfiguration()

public C <C>getConfiguration()

Returns the job's configuration.

Returns
Type Description
C

<S>getStatistics()

public S <S>getStatistics()

Returns information about the job, including starting time and ending time of the job.

Returns
Type Description
S

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getEtag()

public String getEtag()

Returns the hash of the job resource.

Returns
Type Description
String

getGeneratedId()

public String getGeneratedId()

Returns the service-generated id for the job.

Returns
Type Description
String

getJobId()

public JobId getJobId()

Returns the job identity.

Returns
Type Description
JobId
public String getSelfLink()

Returns an URL that can be used to access the resource again. The returned URL can be used for GET requests.

Returns
Type Description
String

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.

Returns
Type Description
JobStatus

getUserEmail()

public String getUserEmail()

Returns the email address of the user who ran the job.

Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

public JobInfo.Builder toBuilder()

Returns a builder for the job object.

Returns
Type Description
JobInfo.Builder

toString()

public String toString()
Returns
Type Description
String
Overrides