Google BigQuery Dataset information. A dataset is a grouping mechanism that holds zero or more
tables. Datasets are the lowest level unit of access control; you cannot control access at the
table level.
See Also: Managing Jobs, Datasets, and Projects
Returns the dataset's access control configuration.
Update the ACLs for a dataset.
Datasetdataset=bigquery.getDataset(DatasetId.of("my_dataset"));List<Acl>beforeAcls=dataset.getAcl();// Make a copy of the ACLs so that they can be modified.ArrayList<Acl>acls=newArrayList<>(beforeAcls);acls.add(Acl.of(newAcl.User("sample.bigquery.dev@gmail.com"),Acl.Role.READER));Dataset.Builderbuilder=dataset.toBuilder();builder.setAcl(acls);bigquery.update(builder.build());// API request.
Returns the default lifetime of all tables in the dataset, in milliseconds. Once this property
is set, all newly-created tables in the dataset will have an expirationTime property set to the
creation time plus the value in this property, and changing the value will only affect new
tables, not existing ones. When the expirationTime for a given table is reached, that table
will be deleted automatically. If a table's expirationTime is modified or removed before the
table expires, or if you provide an explicit expirationTime when creating a table, that value
takes precedence over the default expiration time indicated by this property.
Update the default table expiration time for a dataset.
Datasetdataset=bigquery.getDataset(DatasetId.of("my_dataset"));LongbeforeExpiration=dataset.getDefaultTableLifetime();LongoneDayMilliseconds=24*60*60*1000L;Dataset.Builderbuilder=dataset.toBuilder();builder.setDefaultTableLifetime(oneDayMilliseconds);bigquery.update(builder.build());// API request.
[[["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-01-28 UTC."],[],[]]