public static interface BigQueryServices.DatasetService
| Modifier and Type | Method and Description |
|---|---|
void |
createDataset(java.lang.String projectId,
java.lang.String datasetId,
java.lang.String location,
java.lang.String description,
java.lang.Long defaultTableExpirationMs)
Create a
Dataset with the given location, description and default
expiration time for tables in the dataset (if null, tables don't expire). |
void |
createTable(Table table)
Creates the specified table if it does not exist.
|
void |
deleteDataset(java.lang.String projectId,
java.lang.String datasetId)
Deletes the dataset specified by the datasetId value.
|
void |
deleteTable(TableReference tableRef)
Deletes the table specified by tableId from the dataset.
|
Dataset |
getDataset(java.lang.String projectId,
java.lang.String datasetId)
Gets the specified
Dataset resource by dataset ID. |
Table |
getTable(TableReference tableRef)
Gets the specified
Table resource by table ID. |
Table |
getTable(TableReference tableRef,
java.util.List<java.lang.String> selectedFields) |
<T> long |
insertAll(TableReference ref,
java.util.List<ValueInSingleWindow<TableRow>> rowList,
java.util.List<java.lang.String> insertIdList,
InsertRetryPolicy retryPolicy,
java.util.List<ValueInSingleWindow<T>> failedInserts,
ErrorContainer<T> errorContainer,
boolean skipInvalidRows,
boolean ignoreUnknownValues)
Inserts
TableRows with the specified insertIds if not null. |
boolean |
isTableEmpty(TableReference tableRef)
Returns true if the table is empty.
|
Table |
patchTableDescription(TableReference tableReference,
java.lang.String tableDescription)
Patch BigQuery
Table description. |
@Nullable Table getTable(TableReference tableRef) throws java.lang.InterruptedException, java.io.IOException
Table resource by table ID.
Returns null if the table is not found.
java.lang.InterruptedExceptionjava.io.IOException@Nullable Table getTable(TableReference tableRef, java.util.List<java.lang.String> selectedFields) throws java.lang.InterruptedException, java.io.IOException
java.lang.InterruptedExceptionjava.io.IOExceptionvoid createTable(Table table) throws java.lang.InterruptedException, java.io.IOException
java.lang.InterruptedExceptionjava.io.IOExceptionvoid deleteTable(TableReference tableRef) throws java.io.IOException, java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionboolean isTableEmpty(TableReference tableRef) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException - if the table is not found.java.lang.InterruptedExceptionDataset getDataset(java.lang.String projectId, java.lang.String datasetId) throws java.io.IOException, java.lang.InterruptedException
Dataset resource by dataset ID.java.io.IOExceptionjava.lang.InterruptedExceptionvoid createDataset(java.lang.String projectId,
java.lang.String datasetId,
@Nullable
java.lang.String location,
@Nullable
java.lang.String description,
@Nullable
java.lang.Long defaultTableExpirationMs)
throws java.io.IOException,
java.lang.InterruptedException
Dataset with the given location, description and default
expiration time for tables in the dataset (if null, tables don't expire).java.io.IOExceptionjava.lang.InterruptedExceptionvoid deleteDataset(java.lang.String projectId,
java.lang.String datasetId)
throws java.io.IOException,
java.lang.InterruptedException
Before you can delete a dataset, you must delete all its tables.
java.io.IOExceptionjava.lang.InterruptedException<T> long insertAll(TableReference ref, java.util.List<ValueInSingleWindow<TableRow>> rowList, @Nullable java.util.List<java.lang.String> insertIdList, InsertRetryPolicy retryPolicy, java.util.List<ValueInSingleWindow<T>> failedInserts, ErrorContainer<T> errorContainer, boolean skipInvalidRows, boolean ignoreUnknownValues) throws java.io.IOException, java.lang.InterruptedException
TableRows with the specified insertIds if not null.
If any insert fail permanently according to the retry policy, those rows are added to failedInserts.
Returns the total bytes count of TableRows.
java.io.IOExceptionjava.lang.InterruptedExceptionTable patchTableDescription(TableReference tableReference, @Nullable java.lang.String tableDescription) throws java.io.IOException, java.lang.InterruptedException
Table description.java.io.IOExceptionjava.lang.InterruptedException