public interface BigQuery extends Service<BigQueryOptions>
| Modifier and Type | Interface and Description |
|---|---|
static class |
BigQuery.DatasetDeleteOption
Class for specifying dataset delete options.
|
static class |
BigQuery.DatasetField
Fields of a BigQuery Dataset resource.
|
static class |
BigQuery.DatasetListOption
Class for specifying dataset list options.
|
static class |
BigQuery.DatasetOption
Class for specifying dataset get, create and update options.
|
static class |
BigQuery.JobField
Fields of a BigQuery Job resource.
|
static class |
BigQuery.JobListOption
Class for specifying job list options.
|
static class |
BigQuery.JobOption
Class for specifying table get and create options.
|
static class |
BigQuery.QueryResultsOption
Class for specifying query results options.
|
static class |
BigQuery.TableDataListOption
Class for specifying table data list options.
|
static class |
BigQuery.TableField
Fields of a BigQuery Table resource.
|
static class |
BigQuery.TableListOption
Class for specifying table list options.
|
static class |
BigQuery.TableOption
Class for specifying table get, create and update options.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(JobId tableId)
Sends a job cancel request.
|
boolean |
cancel(String jobId)
Sends a job cancel request.
|
Dataset |
create(DatasetInfo dataset,
BigQuery.DatasetOption... options)
Creates a new dataset.
|
Job |
create(JobInfo job,
BigQuery.JobOption... options)
Creates a new job.
|
Table |
create(TableInfo table,
BigQuery.TableOption... options)
Creates a new table.
|
boolean |
delete(DatasetId datasetId,
BigQuery.DatasetDeleteOption... options)
Deletes the requested dataset.
|
boolean |
delete(String datasetId,
BigQuery.DatasetDeleteOption... options)
Deletes the requested dataset.
|
boolean |
delete(String datasetId,
String tableId)
Deletes the requested table.
|
boolean |
delete(TableId tableId)
Deletes the requested table.
|
Dataset |
getDataset(DatasetId datasetId,
BigQuery.DatasetOption... options)
Returns the requested dataset or
null if not found. |
Dataset |
getDataset(String datasetId,
BigQuery.DatasetOption... options)
Returns the requested dataset or
null if not found. |
Job |
getJob(JobId jobId,
BigQuery.JobOption... options)
Returns the requested job or
null if not found. |
Job |
getJob(String jobId,
BigQuery.JobOption... options)
Returns the requested job or
null if not found. |
QueryResponse |
getQueryResults(JobId job,
BigQuery.QueryResultsOption... options)
Returns results of the query associated with the provided job.
|
Table |
getTable(String datasetId,
String tableId,
BigQuery.TableOption... options)
Returns the requested table or
null if not found. |
Table |
getTable(TableId tableId,
BigQuery.TableOption... options)
Returns the requested table or
null if not found. |
InsertAllResponse |
insertAll(InsertAllRequest request)
Sends an insert all request.
|
Page<Dataset> |
listDatasets(BigQuery.DatasetListOption... options)
Lists the project's datasets.
|
Page<Job> |
listJobs(BigQuery.JobListOption... options)
Lists the jobs.
|
Page<List<FieldValue>> |
listTableData(String datasetId,
String tableId,
BigQuery.TableDataListOption... options)
Lists the table's rows.
|
Page<List<FieldValue>> |
listTableData(TableId tableId,
BigQuery.TableDataListOption... options)
Lists the table's rows.
|
Page<Table> |
listTables(DatasetId datasetId,
BigQuery.TableListOption... options)
Lists the tables in the dataset.
|
Page<Table> |
listTables(String datasetId,
BigQuery.TableListOption... options)
Lists the tables in the dataset.
|
QueryResponse |
query(QueryRequest request)
Runs the query associated with the request.
|
Dataset |
update(DatasetInfo dataset,
BigQuery.DatasetOption... options)
Updates dataset information.
|
Table |
update(TableInfo table,
BigQuery.TableOption... options)
Updates table information.
|
com.google.cloud.bigquery.TableDataWriteChannel |
writer(WriteChannelConfiguration writeChannelConfiguration)
Returns a channel to write data to be inserted into a BigQuery table.
|
Dataset create(DatasetInfo dataset, BigQuery.DatasetOption... options)
BigQueryException - upon failureTable create(TableInfo table, BigQuery.TableOption... options)
BigQueryException - upon failureJob create(JobInfo job, BigQuery.JobOption... options)
BigQueryException - upon failureDataset getDataset(String datasetId, BigQuery.DatasetOption... options)
null if not found.BigQueryException - upon failureDataset getDataset(DatasetId datasetId, BigQuery.DatasetOption... options)
null if not found.BigQueryException - upon failurePage<Dataset> listDatasets(BigQuery.DatasetListOption... options)
DatasetInfo.datasetId(), DatasetInfo.friendlyName() and
DatasetInfo.generatedId()). To get complete information use either
getDataset(String, DatasetOption...) or
getDataset(DatasetId, DatasetOption...).BigQueryException - upon failureboolean delete(String datasetId, BigQuery.DatasetDeleteOption... options)
true if dataset was deleted, false if it was not foundBigQueryException - upon failureboolean delete(DatasetId datasetId, BigQuery.DatasetDeleteOption... options)
true if dataset was deleted, false if it was not foundBigQueryException - upon failureboolean delete(String datasetId, String tableId)
true if table was deleted, false if it was not foundBigQueryException - upon failureboolean delete(TableId tableId)
true if table was deleted, false if it was not foundBigQueryException - upon failureDataset update(DatasetInfo dataset, BigQuery.DatasetOption... options)
BigQueryException - upon failureTable update(TableInfo table, BigQuery.TableOption... options)
BigQueryException - upon failureTable getTable(String datasetId, String tableId, BigQuery.TableOption... options)
null if not found.BigQueryException - upon failureTable getTable(TableId tableId, BigQuery.TableOption... options)
null if not found.BigQueryException - upon failurePage<Table> listTables(String datasetId, BigQuery.TableListOption... options)
TableInfo.tableId(), TableInfo.friendlyName(), TableInfo.generatedId() and type,
which is part of TableInfo.definition()). To get complete information use either
getTable(TableId, TableOption...) or
getTable(String, String, TableOption...).BigQueryException - upon failurePage<Table> listTables(DatasetId datasetId, BigQuery.TableListOption... options)
TableInfo.tableId(), TableInfo.friendlyName(), TableInfo.generatedId() and type,
which is part of TableInfo.definition()). To get complete information use either
getTable(TableId, TableOption...) or
getTable(String, String, TableOption...).BigQueryException - upon failureInsertAllResponse insertAll(InsertAllRequest request)
BigQueryException - upon failurePage<List<FieldValue>> listTableData(String datasetId, String tableId, BigQuery.TableDataListOption... options)
BigQueryException - upon failurePage<List<FieldValue>> listTableData(TableId tableId, BigQuery.TableDataListOption... options)
BigQueryException - upon failureJob getJob(String jobId, BigQuery.JobOption... options)
null if not found.BigQueryException - upon failureJob getJob(JobId jobId, BigQuery.JobOption... options)
null if not found.BigQueryException - upon failurePage<Job> listJobs(BigQuery.JobListOption... options)
BigQueryException - upon failureboolean cancel(String jobId)
getJob(JobId, JobOption...) or
getJob(String, JobOption...)).true if cancel was requested successfully, false if the job was not
foundBigQueryException - upon failureboolean cancel(JobId tableId)
getJob(JobId, JobOption...) or
getJob(String, JobOption...)).true if cancel was requested successfully, false if the job was not
foundBigQueryException - upon failureQueryResponse query(QueryRequest request)
BigQueryException - upon failureQueryResponse getQueryResults(JobId job, BigQuery.QueryResultsOption... options)
BigQueryException - upon failurecom.google.cloud.bigquery.TableDataWriteChannel writer(WriteChannelConfiguration writeChannelConfiguration)
WriteChannelConfiguration parameter.BigQueryException - upon failureCopyright © 2016 Google. All rights reserved.