Package com.google.cloud.bigquery
Class TableInfo.Builder
java.lang.Object
com.google.cloud.bigquery.TableInfo.Builder
- Direct Known Subclasses:
Table.Builder
- Enclosing class:
- TableInfo
A builder for
TableInfo
objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TableInfo
build()
Creates aTableInfo
object.abstract TableInfo.Builder
setCloneDefinition
(CloneDefinition cloneDefinition) abstract TableInfo.Builder
setDefaultCollation
(String defaultCollation) abstract TableInfo.Builder
setDefinition
(TableDefinition definition) Sets the table definition.abstract TableInfo.Builder
setDescription
(String description) Sets a user-friendly description for the table.abstract TableInfo.Builder
setEncryptionConfiguration
(EncryptionConfiguration configuration) abstract TableInfo.Builder
setExpirationTime
(Long expirationTime) Sets the time when this table expires, in milliseconds since the epoch.abstract TableInfo.Builder
setFriendlyName
(String friendlyName) Sets a user-friendly name for the table.abstract TableInfo.Builder
Sets the labels applied to this table.setRequirePartitionFilter
(Boolean requirePartitionFilter) abstract TableInfo.Builder
setResourceTags
(Map<String, String> resourceTags) Sets the resource tags applied to this table.abstract TableInfo.Builder
setTableConstraints
(TableConstraints tableConstraints) abstract TableInfo.Builder
setTableId
(TableId tableId) Sets the table identity.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setDescription
Sets a user-friendly description for the table. -
setExpirationTime
Sets the time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. -
setFriendlyName
Sets a user-friendly name for the table. -
setTableId
Sets the table identity. -
setDefinition
Sets the table definition. UseStandardTableDefinition
to create simple BigQuery table. UseViewDefinition
to create a BigQuery view. UseExternalTableDefinition
to create a BigQuery a table backed by external data. -
setLabels
Sets the labels applied to this table.Unstable, because labels are experimental.
When used with
BigQuery.update(TableInfo, TableOption...)
, settinglabels
tonull
removes all labels; otherwise all keys that are mapped tonull
values are removed and other keys are updated to their respective values. -
setResourceTags
Sets the resource tags applied to this table. -
build
Creates aTableInfo
object. -
setEncryptionConfiguration
-
setRequirePartitionFilter
-
setDefaultCollation
-
setCloneDefinition
-
setTableConstraints
-