public class HttpBigQueryRpc implements BigQueryRpc
Implements
BigQueryRpcStatic Fields
DEFAULT_PROJECTION
public static final String DEFAULT_PROJECTION
Field Value | |
---|---|
Type | Description |
String |
Constructors
HttpBigQueryRpc(BigQueryOptions options)
public HttpBigQueryRpc(BigQueryOptions options)
Parameter | |
---|---|
Name | Description |
options |
BigQueryOptions |
Methods
cancel(String projectId, String jobId, String location)
public boolean cancel(String projectId, String jobId, String location)
Sends a job cancel request. This call will return immediately, and the client will need to poll for the job status to see if the cancel completed successfully.
Parameters | |
---|---|
Name | Description |
projectId |
String |
jobId |
String |
location |
String |
Returns | |
---|---|
Type | Description |
boolean |
cancelSkipExceptionTranslation(String projectId, String jobId, String location)
public boolean cancelSkipExceptionTranslation(String projectId, String jobId, String location)
Parameters | |
---|---|
Name | Description |
projectId |
String |
jobId |
String |
location |
String |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
IOException |
create(Dataset dataset, Map options)
public Dataset create(Dataset dataset, Map.Option,?> options)
Creates a new dataset.
Parameters | |
---|---|
Name | Description |
dataset |
com.google.api.services.bigquery.model.Dataset |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Dataset |
create(Job job, Map options)
public Job create(Job job, Map.Option,?> options)
Creates a new job.
Parameters | |
---|---|
Name | Description |
job |
com.google.api.services.bigquery.model.Job |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Job |
create(Routine routine, Map options)
public Routine create(Routine routine, Map.Option,?> options)
Creates the requested routine.
Parameters | |
---|---|
Name | Description |
routine |
com.google.api.services.bigquery.model.Routine |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Routine |
create(Table table, Map options)
public Table create(Table table, Map.Option,?> options)
Creates a new table.
Parameters | |
---|---|
Name | Description |
table |
com.google.api.services.bigquery.model.Table |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Table |
createJobForQuery(Job job)
public Job createJobForQuery(Job job)
Creates a new query job.
Parameter | |
---|---|
Name | Description |
job |
com.google.api.services.bigquery.model.Job |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Job |
createJobForQuerySkipExceptionTranslation(Job job)
public Job createJobForQuerySkipExceptionTranslation(Job job)
Parameter | |
---|---|
Name | Description |
job |
com.google.api.services.bigquery.model.Job |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Job |
Exceptions | |
---|---|
Type | Description |
IOException |
createSkipExceptionTranslation(Dataset dataset, Map options)
public Dataset createSkipExceptionTranslation(Dataset dataset, Map.Option,?> options)
Parameters | |
---|---|
Name | Description |
dataset |
com.google.api.services.bigquery.model.Dataset |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Dataset |
Exceptions | |
---|---|
Type | Description |
IOException |
createSkipExceptionTranslation(Job job, Map options)
public Job createSkipExceptionTranslation(Job job, Map.Option,?> options)
Parameters | |
---|---|
Name | Description |
job |
com.google.api.services.bigquery.model.Job |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Job |
Exceptions | |
---|---|
Type | Description |
IOException |
createSkipExceptionTranslation(Routine routine, Map options)
public Routine createSkipExceptionTranslation(Routine routine, Map.Option,?> options)
Parameters | |
---|---|
Name | Description |
routine |
com.google.api.services.bigquery.model.Routine |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Routine |
Exceptions | |
---|---|
Type | Description |
IOException |
createSkipExceptionTranslation(Table table, Map options)
public Table createSkipExceptionTranslation(Table table, Map.Option,?> options)
Parameters | |
---|---|
Name | Description |
table |
com.google.api.services.bigquery.model.Table |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Table |
Exceptions | |
---|---|
Type | Description |
IOException |
deleteDataset(String projectId, String datasetId, Map options)
public boolean deleteDataset(String projectId, String datasetId, Map.Option,?> options)
Delete the requested dataset.
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
boolean |
deleteDatasetSkipExceptionTranslation(String projectId, String datasetId, Map options)
public boolean deleteDatasetSkipExceptionTranslation(String projectId, String datasetId, Map.Option,?> options)
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
IOException |
deleteJob(String projectId, String jobName, String location)
public boolean deleteJob(String projectId, String jobName, String location)
Sends a job delete request.
Parameters | |
---|---|
Name | Description |
projectId |
String |
jobName |
String |
location |
String |
Returns | |
---|---|
Type | Description |
boolean |
deleteJobSkipExceptionTranslation(String projectId, String jobName, String location)
public boolean deleteJobSkipExceptionTranslation(String projectId, String jobName, String location)
Parameters | |
---|---|
Name | Description |
projectId |
String |
jobName |
String |
location |
String |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
IOException |
deleteModel(String projectId, String datasetId, String modelId)
public boolean deleteModel(String projectId, String datasetId, String modelId)
Delete the requested model.
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
modelId |
String |
Returns | |
---|---|
Type | Description |
boolean |
deleteModelSkipExceptionTranslation(String projectId, String datasetId, String modelId)
public boolean deleteModelSkipExceptionTranslation(String projectId, String datasetId, String modelId)
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
modelId |
String |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
IOException |
deleteRoutine(String projectId, String datasetId, String routineId)
public boolean deleteRoutine(String projectId, String datasetId, String routineId)
Deletes the requested routine.
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
routineId |
String |
Returns | |
---|---|
Type | Description |
boolean |
deleteRoutineSkipExceptionTranslation(String projectId, String datasetId, String routineId)
public boolean deleteRoutineSkipExceptionTranslation(String projectId, String datasetId, String routineId)
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
routineId |
String |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
IOException |
deleteTable(String projectId, String datasetId, String tableId)
public boolean deleteTable(String projectId, String datasetId, String tableId)
Delete the requested table.
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
tableId |
String |
Returns | |
---|---|
Type | Description |
boolean |
deleteTableSkipExceptionTranslation(String projectId, String datasetId, String tableId)
public boolean deleteTableSkipExceptionTranslation(String projectId, String datasetId, String tableId)
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
tableId |
String |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
IOException |
getDataset(String projectId, String datasetId, Map options)
public Dataset getDataset(String projectId, String datasetId, Map.Option,?> options)
Returns the requested dataset or null
if not found.
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Dataset |
getDatasetSkipExceptionTranslation(String projectId, String datasetId, Map options)
public Dataset getDatasetSkipExceptionTranslation(String projectId, String datasetId, Map.Option,?> options)
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Dataset |
Exceptions | |
---|---|
Type | Description |
IOException |
getIamPolicy(String resourceId, Map options)
public Policy getIamPolicy(String resourceId, Map.Option,?> options)
Returns the IAM Policy for the specified resource, using Policy V1.
Parameters | |
---|---|
Name | Description |
resourceId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Policy |
getIamPolicySkipExceptionTranslation(String resourceId, Map options)
public Policy getIamPolicySkipExceptionTranslation(String resourceId, Map.Option,?> options)
Parameters | |
---|---|
Name | Description |
resourceId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Policy |
Exceptions | |
---|---|
Type | Description |
IOException |
getJob(String projectId, String jobId, String location, Map options)
public Job getJob(String projectId, String jobId, String location, Map.Option,?> options)
Returns the requested job or null
if not found.
Parameters | |
---|---|
Name | Description |
projectId |
String |
jobId |
String |
location |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Job |
getJobSkipExceptionTranslation(String projectId, String jobId, String location, Map options)
public Job getJobSkipExceptionTranslation(String projectId, String jobId, String location, Map.Option,?> options)
Parameters | |
---|---|
Name | Description |
projectId |
String |
jobId |
String |
location |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Job |
Exceptions | |
---|---|
Type | Description |
IOException |
getModel(String projectId, String datasetId, String modelId, Map options)
public Model getModel(String projectId, String datasetId, String modelId, Map.Option,?> options)
Returns the requested model or null
if not found.
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
modelId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Model |
getModelSkipExceptionTranslation(String projectId, String datasetId, String modelId, Map options)
public Model getModelSkipExceptionTranslation(String projectId, String datasetId, String modelId, Map.Option,?> options)
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
modelId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Model |
Exceptions | |
---|---|
Type | Description |
IOException |
getQueryJob(String projectId, String jobId, String location)
public Job getQueryJob(String projectId, String jobId, String location)
Returns the requested query job or null
if not found.
Parameters | |
---|---|
Name | Description |
projectId |
String |
jobId |
String |
location |
String |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Job |
getQueryJobSkipExceptionTranslation(String projectId, String jobId, String location)
public Job getQueryJobSkipExceptionTranslation(String projectId, String jobId, String location)
Parameters | |
---|---|
Name | Description |
projectId |
String |
jobId |
String |
location |
String |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Job |
Exceptions | |
---|---|
Type | Description |
IOException |
getQueryResults(String projectId, String jobId, String location, Map options)
public GetQueryResultsResponse getQueryResults(String projectId, String jobId, String location, Map.Option,?> options)
Returns results of the query associated with the provided job.
Parameters | |
---|---|
Name | Description |
projectId |
String |
jobId |
String |
location |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.GetQueryResultsResponse |
getQueryResultsSkipExceptionTranslation(String projectId, String jobId, String location, Map options)
public GetQueryResultsResponse getQueryResultsSkipExceptionTranslation(String projectId, String jobId, String location, Map.Option,?> options)
Parameters | |
---|---|
Name | Description |
projectId |
String |
jobId |
String |
location |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.GetQueryResultsResponse |
Exceptions | |
---|---|
Type | Description |
IOException |
getQueryResultsWithRowLimit(String projectId, String jobId, String location, Integer maxResultPerPage, Long timeoutMs)
public GetQueryResultsResponse getQueryResultsWithRowLimit(String projectId, String jobId, String location, Integer maxResultPerPage, Long timeoutMs)
Returns results of the query with a limit on how many rows of data to pre-fetch associated with the provided job.
Parameters | |
---|---|
Name | Description |
projectId |
String |
jobId |
String |
location |
String |
maxResultPerPage |
Integer |
timeoutMs |
Long |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.GetQueryResultsResponse |
getQueryResultsWithRowLimitSkipExceptionTranslation(String projectId, String jobId, String location, Integer maxResultPerPage, Long timeoutMs)
public GetQueryResultsResponse getQueryResultsWithRowLimitSkipExceptionTranslation(String projectId, String jobId, String location, Integer maxResultPerPage, Long timeoutMs)
Parameters | |
---|---|
Name | Description |
projectId |
String |
jobId |
String |
location |
String |
maxResultPerPage |
Integer |
timeoutMs |
Long |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.GetQueryResultsResponse |
Exceptions | |
---|---|
Type | Description |
IOException |
getRoutine(String projectId, String datasetId, String routineId, Map options)
public Routine getRoutine(String projectId, String datasetId, String routineId, Map.Option,?> options)
Returns the requested routine or null
if not found.
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
routineId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Routine |
getRoutineSkipExceptionTranslation(String projectId, String datasetId, String routineId, Map options)
public Routine getRoutineSkipExceptionTranslation(String projectId, String datasetId, String routineId, Map.Option,?> options)
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
routineId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Routine |
Exceptions | |
---|---|
Type | Description |
IOException |
getTable(String projectId, String datasetId, String tableId, Map options)
public Table getTable(String projectId, String datasetId, String tableId, Map.Option,?> options)
Returns the requested table or null
if not found.
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
tableId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Table |
getTableSkipExceptionTranslation(String projectId, String datasetId, String tableId, Map options)
public Table getTableSkipExceptionTranslation(String projectId, String datasetId, String tableId, Map.Option,?> options)
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
tableId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.Table |
Exceptions | |
---|---|
Type | Description |
IOException |
insertAll(String projectId, String datasetId, String tableId, TableDataInsertAllRequest request)
public TableDataInsertAllResponse insertAll(String projectId, String datasetId, String tableId, TableDataInsertAllRequest request)
Sends an insert all request.
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
tableId |
String |
request |
com.google.api.services.bigquery.model.TableDataInsertAllRequest |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.TableDataInsertAllResponse |
insertAllSkipExceptionTranslation(String projectId, String datasetId, String tableId, TableDataInsertAllRequest request)
public TableDataInsertAllResponse insertAllSkipExceptionTranslation(String projectId, String datasetId, String tableId, TableDataInsertAllRequest request)
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
tableId |
String |
request |
com.google.api.services.bigquery.model.TableDataInsertAllRequest |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.TableDataInsertAllResponse |
Exceptions | |
---|---|
Type | Description |
IOException |
listDatasets(String projectId, Map options)
public Tuple,Iterable > listDatasets(String projectId, Map.Option,?> options)
Lists the provided project's datasets, keyed by page token. Partial information is returned on a dataset (datasetReference, friendlyName and id). To get full information use #getDataset(String, String, Map).
Parameters | |
---|---|
Name | Description |
projectId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.cloud.Tuple<String,Iterable<com.google.api.services.bigquery.model.Dataset>> |
listDatasetsSkipExceptionTranslation(String projectId, Map options)
public Tuple,Iterable > listDatasetsSkipExceptionTranslation(String projectId, Map.Option,?> options)
Parameters | |
---|---|
Name | Description |
projectId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.cloud.Tuple<String,Iterable<com.google.api.services.bigquery.model.Dataset>> |
Exceptions | |
---|---|
Type | Description |
IOException |
listJobs(String projectId, Map options)
public Tuple,Iterable > listJobs(String projectId, Map.Option,?> options)
Lists the project's jobs.
Parameters | |
---|---|
Name | Description |
projectId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.cloud.Tuple<String,Iterable<com.google.api.services.bigquery.model.Job>> |
listJobsSkipExceptionTranslation(String projectId, Map options)
public Tuple,Iterable > listJobsSkipExceptionTranslation(String projectId, Map.Option,?> options)
Parameters | |
---|---|
Name | Description |
projectId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.cloud.Tuple<String,Iterable<com.google.api.services.bigquery.model.Job>> |
Exceptions | |
---|---|
Type | Description |
IOException |
listModels(String projectId, String datasetId, Map options)
public Tuple,Iterable > listModels(String projectId, String datasetId, Map.Option,?> options)
Lists the dataset's models, keyed by page token.
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.cloud.Tuple<String,Iterable<com.google.api.services.bigquery.model.Model>> |
listModelsSkipExceptionTranslation(String projectId, String datasetId, Map options)
public Tuple,Iterable > listModelsSkipExceptionTranslation(String projectId, String datasetId, Map.Option,?> options)
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.cloud.Tuple<String,Iterable<com.google.api.services.bigquery.model.Model>> |
Exceptions | |
---|---|
Type | Description |
IOException |
listRoutines(String projectId, String datasetId, Map options)
public Tuple,Iterable > listRoutines(String projectId, String datasetId, Map.Option,?> options)
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.cloud.Tuple<String,Iterable<com.google.api.services.bigquery.model.Routine>> |
listRoutinesSkipExceptionTranslation(String projectId, String datasetId, Map options)
public Tuple,Iterable > listRoutinesSkipExceptionTranslation(String projectId, String datasetId, Map.Option,?> options)
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.cloud.Tuple<String,Iterable<com.google.api.services.bigquery.model.Routine>> |
Exceptions | |
---|---|
Type | Description |
IOException |
listTableData(String projectId, String datasetId, String tableId, Map options)
public TableDataList listTableData(String projectId, String datasetId, String tableId, Map.Option,?> options)
Lists the table's rows.
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
tableId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.TableDataList |
listTableDataSkipExceptionTranslation(String projectId, String datasetId, String tableId, Map options)
public TableDataList listTableDataSkipExceptionTranslation(String projectId, String datasetId, String tableId, Map.Option,?> options)
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
tableId |
String |
options |
Map<Option,?> |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.TableDataList |
Exceptions | |
---|---|
Type | Description |
IOException |
listTableDataWithRowLimit(String projectId, String datasetId, String tableId, Integer maxResultPerPage, String pageToken)
public TableDataList listTableDataWithRowLimit(String projectId, String datasetId, String tableId, Integer maxResultPerPage, String pageToken)
Lists the table's rows with a limit on how many rows of data to pre-fetch.
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
tableId |
String |
maxResultPerPage |
Integer |
pageToken |
String |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.TableDataList |
listTableDataWithRowLimitSkipExceptionTranslation(String projectId, String datasetId, String tableId, Integer maxResultPerPage, String pageToken)
public TableDataList listTableDataWithRowLimitSkipExceptionTranslation(String projectId, String datasetId, String tableId, Integer maxResultPerPage, String pageToken)
Parameters | |
---|---|
Name | Description |
projectId |
String |
datasetId |
String |
tableId |
String |
maxResultPerPage |
Integer |
pageToken |
String |
Returns | |
---|---|
Type | Description |
com.google.api.services.bigquery.model.TableDataList |
Exceptions | |
---|---|
Type | Description |
IOException |
listTables(String projectId, String datasetId, Map options)
public Tuple,Iterable> listTables(String projectId, String datasetId, Map.Option,?> options)
Lists the dataset's tables, keyed by page token. Partial information is returned on a table
(tableReference, friendlyName, id and type). To get full information use #getTable(String, String, String, Map).
Parameters
Name
Description
projectId
String
datasetId
String
options
Map<Option,?>
Returns
Type
Description
com.google.cloud.Tuple<String,Iterable<com.google.api.services.bigquery.model.Table>>
listTablesSkipExceptionTranslation(String projectId, String datasetId, Map options)
public Tuple,Iterable> listTablesSkipExceptionTranslation(String projectId, String datasetId, Map.Option,?> options)
Parameters
Name
Description
projectId
String
datasetId
String
options
Map<Option,?>
Returns
Type
Description
com.google.cloud.Tuple<String,Iterable<com.google.api.services.bigquery.model.Table>>
Exceptions
Type
Description
IOException
open(Job loadJob)
public String open(Job loadJob)
Opens a resumable upload session to load data into a BigQuery table and returns an upload URI.
Parameter
Name
Description
loadJob
com.google.api.services.bigquery.model.Job
Returns
Type
Description
String
openSkipExceptionTranslation(Job loadJob)
public String openSkipExceptionTranslation(Job loadJob)
Parameter
Name
Description
loadJob
com.google.api.services.bigquery.model.Job
Returns
Type
Description
String
Exceptions
Type
Description
IOException
patch(Dataset dataset, Map options)
public Dataset patch(Dataset dataset, Map.Option,?> options)
Updates dataset information.
Parameters
Name
Description
dataset
com.google.api.services.bigquery.model.Dataset
options
Map<Option,?>
Returns
Type
Description
com.google.api.services.bigquery.model.Dataset
patch(Model model, Map options)
public Model patch(Model model, Map.Option,?> options)
Updates model information.
Parameters
Name
Description
model
com.google.api.services.bigquery.model.Model
options
Map<Option,?>
Returns
Type
Description
com.google.api.services.bigquery.model.Model
patch(Table table, Map options)
public Table patch(Table table, Map.Option,?> options)
Updates table information.
Parameters
Name
Description
table
com.google.api.services.bigquery.model.Table
options
Map<Option,?>
Returns
Type
Description
com.google.api.services.bigquery.model.Table
patchSkipExceptionTranslation(Dataset dataset, Map options)
public Dataset patchSkipExceptionTranslation(Dataset dataset, Map.Option,?> options)
Parameters
Name
Description
dataset
com.google.api.services.bigquery.model.Dataset
options
Map<Option,?>
Returns
Type
Description
com.google.api.services.bigquery.model.Dataset
Exceptions
Type
Description
IOException
patchSkipExceptionTranslation(Model model, Map options)
public Model patchSkipExceptionTranslation(Model model, Map.Option,?> options)
Parameters
Name
Description
model
com.google.api.services.bigquery.model.Model
options
Map<Option,?>
Returns
Type
Description
com.google.api.services.bigquery.model.Model
Exceptions
Type
Description
IOException
patchSkipExceptionTranslation(Table table, Map options)
public Table patchSkipExceptionTranslation(Table table, Map.Option,?> options)
Parameters
Name
Description
table
com.google.api.services.bigquery.model.Table
options
Map<Option,?>
Returns
Type
Description
com.google.api.services.bigquery.model.Table
Exceptions
Type
Description
IOException
queryRpc(String projectId, QueryRequest content)
public QueryResponse queryRpc(String projectId, QueryRequest content)
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 bigquery server. After setting any optional
parameters, call the Query#execute() method to invoke the remote operation.
Parameters
Name
Description
projectId
String
content
com.google.api.services.bigquery.model.QueryRequest
Returns
Type
Description
com.google.api.services.bigquery.model.QueryResponse
queryRpcSkipExceptionTranslation(String projectId, QueryRequest content)
public QueryResponse queryRpcSkipExceptionTranslation(String projectId, QueryRequest content)
Parameters
Name
Description
projectId
String
content
com.google.api.services.bigquery.model.QueryRequest
Returns
Type
Description
com.google.api.services.bigquery.model.QueryResponse
Exceptions
Type
Description
IOException
setIamPolicy(String resourceId, Policy policy, Map options)
public Policy setIamPolicy(String resourceId, Policy policy, Map.Option,?> options)
Updates the IAM policy for the specified resource.
Parameters
Name
Description
resourceId
String
policy
com.google.api.services.bigquery.model.Policy
options
Map<Option,?>
Returns
Type
Description
com.google.api.services.bigquery.model.Policy
setIamPolicySkipExceptionTranslation(String resourceId, Policy policy, Map options)
public Policy setIamPolicySkipExceptionTranslation(String resourceId, Policy policy, Map.Option,?> options)
Parameters
Name
Description
resourceId
String
policy
com.google.api.services.bigquery.model.Policy
options
Map<Option,?>
Returns
Type
Description
com.google.api.services.bigquery.model.Policy
Exceptions
Type
Description
IOException
testIamPermissions(String resourceId, List permissions, Map options)
public TestIamPermissionsResponse testIamPermissions(String resourceId, List permissions, Map.Option,?> options)
Tests whether the caller holds the provided permissions for the specified resource. Returns the
subset of permissions the caller actually holds.
Parameters
Name
Description
resourceId
String
permissions
List<String>
options
Map<Option,?>
Returns
Type
Description
com.google.api.services.bigquery.model.TestIamPermissionsResponse
testIamPermissionsSkipExceptionTranslation(String resourceId, List permissions, Map options)
public TestIamPermissionsResponse testIamPermissionsSkipExceptionTranslation(String resourceId, List permissions, Map.Option,?> options)
Parameters
Name
Description
resourceId
String
permissions
List<String>
options
Map<Option,?>
Returns
Type
Description
com.google.api.services.bigquery.model.TestIamPermissionsResponse
Exceptions
Type
Description
IOException
update(Routine routine, Map options)
public Routine update(Routine routine, Map.Option,?> options)
Updates the requested routine.
Parameters
Name
Description
routine
com.google.api.services.bigquery.model.Routine
options
Map<Option,?>
Returns
Type
Description
com.google.api.services.bigquery.model.Routine
updateSkipExceptionTranslation(Routine routine, Map options)
public Routine updateSkipExceptionTranslation(Routine routine, Map.Option,?> options)
Parameters
Name
Description
routine
com.google.api.services.bigquery.model.Routine
options
Map<Option,?>
Returns
Type
Description
com.google.api.services.bigquery.model.Routine
Exceptions
Type
Description
IOException
write(String uploadId, byte[] toWrite, int toWriteOffset, long destOffset, int length, boolean last)
public Job write(String uploadId, byte[] toWrite, int toWriteOffset, long destOffset, int length, boolean last)
Uploads the provided data to the resumable upload session at the specified position. This
method returns the job created to insert the rows, only when last
is true
.
Parameters
Name
Description
uploadId
String
toWrite
byte[]
toWriteOffset
int
destOffset
long
length
int
last
boolean
Returns
Type
Description
com.google.api.services.bigquery.model.Job
writeSkipExceptionTranslation(String uploadId, byte[] toWrite, int toWriteOffset, long destOffset, int length, boolean last)
public Job writeSkipExceptionTranslation(String uploadId, byte[] toWrite, int toWriteOffset, long destOffset, int length, boolean last)
Parameters
Name
Description
uploadId
String
toWrite
byte[]
toWriteOffset
int
destOffset
long
length
int
last
boolean
Returns
Type
Description
com.google.api.services.bigquery.model.Job
Exceptions
Type
Description
IOException
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-12 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-12 UTC."],[],[]]