public static class Table.Builder extends TableInfo.Builder
Table objects.| Modifier and Type | Method and Description |
|---|---|
Table |
build()
Creates a
TableInfo object. |
Table.Builder |
setDefinition(TableDefinition definition)
Sets the table definition.
|
Table.Builder |
setDescription(String description)
Sets a user-friendly description for the table.
|
TableInfo.Builder |
setEncryptionConfiguration(EncryptionConfiguration configuration) |
Table.Builder |
setExpirationTime(Long expirationTime)
Sets the time when this table expires, in milliseconds since the epoch.
|
Table.Builder |
setFriendlyName(String friendlyName)
Sets a user-friendly name for the table.
|
Table.Builder |
setLabels(Map<String,String> labels)
Sets the labels applied to this table.
|
Table.Builder |
setTableId(TableId tableId)
Sets the table identity.
|
public Table.Builder setDescription(String description)
TableInfo.BuildersetDescription in class TableInfo.Builderpublic Table.Builder setExpirationTime(Long expirationTime)
TableInfo.BuildersetExpirationTime in class TableInfo.Builderpublic Table.Builder setFriendlyName(String friendlyName)
TableInfo.BuildersetFriendlyName in class TableInfo.Builderpublic Table.Builder setTableId(TableId tableId)
TableInfo.BuildersetTableId in class TableInfo.Builderpublic Table.Builder setDefinition(TableDefinition definition)
TableInfo.BuilderStandardTableDefinition to create simple BigQuery
table. Use ViewDefinition to create a BigQuery view. Use ExternalTableDefinition to create a BigQuery a table backed by external data.setDefinition in class TableInfo.Builderpublic TableInfo.Builder setEncryptionConfiguration(EncryptionConfiguration configuration)
setEncryptionConfiguration in class TableInfo.Builderpublic Table.Builder setLabels(Map<String,String> labels)
TableInfo.BuilderUnstable, because labels are experimental.
When used with BigQuery.update(TableInfo, TableOption...), setting labels
to null removes all labels; otherwise all keys that are mapped to null values
are removed and other keys are updated to their respective values.
setLabels in class TableInfo.Builderpublic Table build()
TableInfo.BuilderTableInfo object.build in class TableInfo.BuilderCopyright © 2019 Google LLC. All rights reserved.