Class JobInfo (2.38.2)

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
NameDescription
configurationJobConfiguration
Returns
TypeDescription
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
NameDescription
configurationJobConfiguration
Returns
TypeDescription
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
NameDescription
jobIdJobId
configurationJobConfiguration
Returns
TypeDescription
JobInfo

Methods

<C>getConfiguration()

public C <C>getConfiguration()

Returns the job's configuration.

Returns
TypeDescription
C

<S>getStatistics()

public S <S>getStatistics()

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

Returns
TypeDescription
S

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getEtag()

public String getEtag()

Returns the hash of the job resource.

Returns
TypeDescription
String

getGeneratedId()

public String getGeneratedId()

Returns the service-generated id for the job.

Returns
TypeDescription
String

getJobId()

public JobId getJobId()

Returns the job identity.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
JobStatus

getUserEmail()

public String getUserEmail()

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

Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public JobInfo.Builder toBuilder()

Returns a builder for the job object.

Returns
TypeDescription
JobInfo.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides