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 TableInfobuild()Creates aTableInfoobject.abstract TableInfo.BuildersetCloneDefinition(CloneDefinition cloneDefinition) abstract TableInfo.BuildersetDefaultCollation(String defaultCollation) abstract TableInfo.BuildersetDefinition(TableDefinition definition) Sets the table definition.abstract TableInfo.BuildersetDescription(String description) Sets a user-friendly description for the table.abstract TableInfo.BuildersetEncryptionConfiguration(EncryptionConfiguration configuration) abstract TableInfo.BuildersetExpirationTime(Long expirationTime) Sets the time when this table expires, in milliseconds since the epoch.abstract TableInfo.BuildersetFriendlyName(String friendlyName) Sets a user-friendly name for the table.abstract TableInfo.BuilderSets the labels applied to this table.setRequirePartitionFilter(Boolean requirePartitionFilter) abstract TableInfo.BuildersetResourceTags(Map<String, String> resourceTags) Sets the resource tags applied to this table.abstract TableInfo.BuildersetTableConstraints(TableConstraints tableConstraints) abstract TableInfo.BuildersetTableId(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. UseStandardTableDefinitionto create simple BigQuery table. UseViewDefinitionto create a BigQuery view. UseExternalTableDefinitionto 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...), settinglabelstonullremoves all labels; otherwise all keys that are mapped tonullvalues are removed and other keys are updated to their respective values. -
setResourceTags
Sets the resource tags applied to this table. -
build
Creates aTableInfoobject. -
setEncryptionConfiguration
-
setRequirePartitionFilter
-
setDefaultCollation
-
setCloneDefinition
-
setTableConstraints
-