Package com.google.cloud.bigquery
Class Table.Builder
java.lang.Object
com.google.cloud.bigquery.TableInfo.Builder
com.google.cloud.bigquery.Table.Builder
- Enclosing class:
- Table
A builder for
Table objects.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates aTableInfoobject.setCloneDefinition(CloneDefinition cloneDefinition) setDefaultCollation(String defaultCollation) setDefinition(TableDefinition definition) Sets the table definition.setDescription(String description) Sets a user-friendly description for the table.setEncryptionConfiguration(EncryptionConfiguration configuration) setExpirationTime(Long expirationTime) Sets the time when this table expires, in milliseconds since the epoch.setFriendlyName(String friendlyName) Sets a user-friendly name for the table.Sets the labels applied to this table.setRequirePartitionFilter(Boolean requirePartitionFilter) setResourceTags(Map<String, String> resourceTags) Sets the resource tags applied to this table.setTableConstraints(TableConstraints tableConstraints) setTableId(TableId tableId) Sets the table identity.
-
Method Details
-
setDescription
Description copied from class:TableInfo.BuilderSets a user-friendly description for the table.- Specified by:
setDescriptionin classTableInfo.Builder
-
setExpirationTime
Description copied from class:TableInfo.BuilderSets 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.- Specified by:
setExpirationTimein classTableInfo.Builder
-
setFriendlyName
Description copied from class:TableInfo.BuilderSets a user-friendly name for the table.- Specified by:
setFriendlyNamein classTableInfo.Builder
-
setTableId
Description copied from class:TableInfo.BuilderSets the table identity.- Specified by:
setTableIdin classTableInfo.Builder
-
setDefinition
Description copied from class:TableInfo.BuilderSets the table definition. UseStandardTableDefinitionto create simple BigQuery table. UseViewDefinitionto create a BigQuery view. UseExternalTableDefinitionto create a BigQuery a table backed by external data.- Specified by:
setDefinitionin classTableInfo.Builder
-
setEncryptionConfiguration
- Specified by:
setEncryptionConfigurationin classTableInfo.Builder
-
setLabels
Description copied from class:TableInfo.BuilderSets the labels applied to this table.Unstable, because labels are experimental.
When used with
BigQuery.update(TableInfo, TableOption...), settinglabelstonullremoves all labels; otherwise all keys that are mapped tonullvalues are removed and other keys are updated to their respective values.- Specified by:
setLabelsin classTableInfo.Builder
-
setResourceTags
Description copied from class:TableInfo.BuilderSets the resource tags applied to this table.- Specified by:
setResourceTagsin classTableInfo.Builder
-
setRequirePartitionFilter
- Overrides:
setRequirePartitionFilterin classTableInfo.Builder
-
setDefaultCollation
- Specified by:
setDefaultCollationin classTableInfo.Builder
-
setCloneDefinition
- Specified by:
setCloneDefinitionin classTableInfo.Builder
-
setTableConstraints
- Specified by:
setTableConstraintsin classTableInfo.Builder
-
build
Description copied from class:TableInfo.BuilderCreates aTableInfoobject.- Specified by:
buildin classTableInfo.Builder
-