Interface | Description |
---|---|
BigQuery |
An interface for Google Cloud BigQuery.
|
BigQueryFactory |
An interface for BigQuery factories.
|
LoadConfiguration |
Common interface for a load configuration.
|
LoadConfiguration.Builder |
Class | Description |
---|---|
Acl |
Access Control for a BigQuery Dataset.
|
Acl.Domain |
Class for a BigQuery Domain entity.
|
Acl.Entity |
Base class for BigQuery entities that can be grant access to the dataset.
|
Acl.Group |
Class for a BigQuery Group entity.
|
Acl.User |
Class for a BigQuery User entity.
|
Acl.View |
Class for a BigQuery View entity.
|
BigQuery.DatasetDeleteOption |
Class for specifying dataset delete options.
|
BigQuery.DatasetListOption |
Class for specifying dataset list options.
|
BigQuery.DatasetOption |
Class for specifying dataset get, create and update options.
|
BigQuery.JobListOption |
Class for specifying job list options.
|
BigQuery.JobOption |
Class for specifying table get and create options.
|
BigQuery.QueryResultsOption |
Class for specifying query results options.
|
BigQuery.TableDataListOption |
Class for specifying table data list options.
|
BigQuery.TableListOption |
Class for specifying table list options.
|
BigQuery.TableOption |
Class for specifying table get, create and update options.
|
BigQueryError |
Google Cloud BigQuery Error.
|
BigQueryOptions | |
BigQueryOptions.Builder | |
BigQueryOptions.DefaultBigqueryFactory | |
BigQueryOptions.DefaultBigQueryRpcFactory | |
CopyJobConfiguration |
Google BigQuery copy job configuration.
|
CopyJobConfiguration.Builder | |
CsvOptions |
Google BigQuery options for CSV format.
|
CsvOptions.Builder | |
Dataset |
A Google BigQuery Dataset.
|
Dataset.Builder |
A builder for
Dataset objects. |
DatasetId |
Google BigQuery Dataset identity.
|
DatasetInfo |
Google BigQuery Dataset information.
|
DatasetInfo.Builder |
A builder for
DatasetInfo objects. |
ExternalTableDefinition |
Google BigQuery external table definition.
|
ExternalTableDefinition.Builder | |
ExtractJobConfiguration |
Google BigQuery extract job configuration.
|
ExtractJobConfiguration.Builder | |
Field |
Google BigQuery Table field.
|
Field.Builder | |
Field.Type |
Data Types for a BigQuery Table field.
|
FieldValue |
Google BigQuery Table Field Value class.
|
FormatOptions |
Base class for Google BigQuery format options.
|
InsertAllRequest |
Google Cloud BigQuery insert all request.
|
InsertAllRequest.Builder | |
InsertAllRequest.RowToInsert |
A Google Big Query row to be inserted into a table.
|
InsertAllResponse |
Google Cloud BigQuery insert all response.
|
Job |
A Google BigQuery Job.
|
Job.Builder |
A builder for
Job objects. |
JobConfiguration |
Base class for a BigQuery job configuration.
|
JobConfiguration.Builder<T extends JobConfiguration,B extends JobConfiguration.Builder<T,B>> |
Base builder for job configurations.
|
JobId |
Google BigQuery Job identity.
|
JobInfo |
Google BigQuery Job information.
|
JobInfo.Builder |
A builder for
JobInfo objects. |
JobStatistics |
A Google BigQuery Job statistics.
|
JobStatistics.CopyStatistics |
A Google BigQuery Copy Job statistics.
|
JobStatistics.ExtractStatistics |
A Google BigQuery Extract Job statistics.
|
JobStatistics.LoadStatistics |
A Google BigQuery Load Job statistics.
|
JobStatistics.QueryStatistics |
A Google BigQuery Query Job statistics.
|
JobStatus |
A Google BigQuery Job status.
|
LoadJobConfiguration |
Google BigQuery load job configuration.
|
LoadJobConfiguration.Builder | |
QueryJobConfiguration |
Google BigQuery Query Job configuration.
|
QueryJobConfiguration.Builder | |
QueryRequest |
Google Cloud BigQuery Query Request.
|
QueryRequest.Builder | |
QueryResponse |
Google Cloud BigQuery Query Response.
|
QueryResult | |
QueryStage |
BigQuery provides diagnostic information about a completed query's execution plan (or query plan
for short).
|
QueryStage.QueryStep |
Each query stage is made of a number of steps.
|
Schema |
This class represents the schema for a Google BigQuery Table or data source.
|
Schema.Builder | |
StandardTableDefinition |
A Google BigQuery default table definition.
|
StandardTableDefinition.Builder | |
StandardTableDefinition.StreamingBuffer |
Google BigQuery Table's Streaming Buffer information.
|
Table |
A Google BigQuery Table.
|
Table.Builder |
A builder for
Table objects. |
TableDefinition |
Base class for a Google BigQuery table definition.
|
TableDefinition.Builder<T extends TableDefinition,B extends TableDefinition.Builder<T,B>> |
Base builder for table definitions.
|
TableId |
Google BigQuery Table identity.
|
TableInfo |
Google BigQuery table information.
|
TableInfo.Builder |
A builder for
TableInfo objects. |
TimePartitioning |
Objects of this class allow to configure table partitioning based on time.
|
UserDefinedFunction |
Google BigQuery User Defined Function.
|
ViewDefinition |
Google BigQuery view table definition.
|
ViewDefinition.Builder | |
WriteChannelConfiguration |
Google BigQuery Configuration for a load operation.
|
WriteChannelConfiguration.Builder |
Enum | Description |
---|---|
Acl.Entity.Type |
Types of BigQuery entities.
|
Acl.Role |
Dataset roles supported by BigQuery.
|
BigQuery.DatasetField |
Fields of a BigQuery Dataset resource.
|
BigQuery.JobField |
Fields of a BigQuery Job resource.
|
BigQuery.TableField |
Fields of a BigQuery Table resource.
|
Field.Mode |
Mode for a BigQuery Table field.
|
Field.Type.Value | |
FieldValue.Attribute |
The field value's attribute, giving information on the field's content type.
|
JobInfo.CreateDisposition |
Specifies whether the job is allowed to create new tables.
|
JobInfo.WriteDisposition |
Specifies the action that occurs if the destination table already exists.
|
JobStatus.State |
Possible states that a BigQuery Job can assume.
|
QueryJobConfiguration.Priority |
Priority levels for a query.
|
TableDefinition.Type |
The table type.
|
TimePartitioning.Type |
The type of time partitioning.
|
UserDefinedFunction.Type |
Type of user-defined function.
|
Exception | Description |
---|---|
BigQueryException |
BigQuery service exception.
|
A simple usage example showing how to create a table if it does not exist and load data into it. For the complete source code see CreateTableAndLoadData.java.
BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
TableId tableId = TableId.of("dataset", "table");
Table table = bigquery.getTable(tableId);
if (table == null) {
System.out.println("Creating table " + tableId);
Field integerField = Field.of("fieldName", Field.Type.integer());
Schema schema = Schema.of(integerField);
table = bigquery.create(TableInfo.of(tableId, StandardTableDefinition.of(schema)));
}
System.out.println("Loading data into table " + tableId);
Job loadJob = table.load(FormatOptions.csv(), "gs://bucket/path");
loadJob = loadJob.waitFor();
if (loadJob.getStatus().getError() != null) {
System.out.println("Job completed with errors");
} else {
System.out.println("Job succeeded");
}
Copyright © 2016 Google. All rights reserved.