BigQuery API v2 (revision 88)



com.google.api.services.bigquery
Class Bigquery.Jobs

java.lang.Object
  extended by com.google.api.services.bigquery.Bigquery.Jobs
Enclosing class:
Bigquery

public class Bigquery.Jobs
extends Object

The "jobs" collection of methods.


Nested Class Summary
 class Bigquery.Jobs.Get
           
 class Bigquery.Jobs.GetQueryResults
           
 class Bigquery.Jobs.Insert
           
 class Bigquery.Jobs.List
           
 class Bigquery.Jobs.Query
           
 
Constructor Summary
Bigquery.Jobs()
           
 
Method Summary
 Bigquery.Jobs.Get get(String projectId, String jobId)
          Retrieves the specified job by ID.
 Bigquery.Jobs.GetQueryResults getQueryResults(String projectId, String jobId)
          Retrieves the results of a query job.
 Bigquery.Jobs.Insert insert(String projectId, Job content)
          Starts a new asynchronous job.
 Bigquery.Jobs.Insert insert(String projectId, Job content, AbstractInputStreamContent mediaContent)
          Starts a new asynchronous job.
 Bigquery.Jobs.List list(String projectId)
          Lists all the Jobs in the specified project that were started by the user.
 Bigquery.Jobs.Query query(String projectId, QueryRequest content)
          Runs a BigQuery SQL query synchronously and returns query results if the query completes within a specified timeout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bigquery.Jobs

public Bigquery.Jobs()
Method Detail

get

public Bigquery.Jobs.Get get(String projectId,
                             String jobId)
                      throws IOException
Retrieves the specified job by ID. Create a request for the method "jobs.get". This request holds the parameters needed by the the bigquery server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
projectId - Project ID of the requested job
jobId - Job ID of the requested job
Returns:
the request
Throws:
IOException

getQueryResults

public Bigquery.Jobs.GetQueryResults getQueryResults(String projectId,
                                                     String jobId)
                                              throws IOException
Retrieves the results of a query job. Create a request for the method "jobs.getQueryResults". This request holds the parameters needed by the the bigquery server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
projectId - Project ID of the query job
jobId - Job ID of the query job
Returns:
the request
Throws:
IOException

insert

public Bigquery.Jobs.Insert insert(String projectId,
                                   Job content)
                            throws IOException
Starts a new asynchronous job. Create a request for the method "jobs.insert". This request holds the parameters needed by the the bigquery server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
projectId - Project ID of the project that will be billed for the job
content - the Job
Returns:
the request
Throws:
IOException

insert

public Bigquery.Jobs.Insert insert(String projectId,
                                   Job content,
                                   AbstractInputStreamContent mediaContent)
                            throws IOException
Starts a new asynchronous job. Create a request for the method "jobs.insert". This request holds the parameters needed by the the bigquery server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

This method should be used for uploading media content.

Parameters:
projectId - Project ID of the project that will be billed for the job
content - the Job media metadata or null if none
mediaContent - The media HTTP content or null if none.
Returns:
the request
Throws:
IOException - if the initialization of the request fails

list

public Bigquery.Jobs.List list(String projectId)
                        throws IOException
Lists all the Jobs in the specified project that were started by the user. Create a request for the method "jobs.list". This request holds the parameters needed by the the bigquery server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
projectId - Project ID of the jobs to list
Returns:
the request
Throws:
IOException

query

public Bigquery.Jobs.Query query(String projectId,
                                 QueryRequest content)
                          throws IOException
Runs a BigQuery SQL query synchronously and returns query results if the query completes within a specified timeout. Create a request for the method "jobs.query". This request holds the parameters needed by the the bigquery server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
projectId - Project ID of the project billed for the query
content - the QueryRequest
Returns:
the request
Throws:
IOException