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.Builder
setDescription
in class TableInfo.Builder
public Table.Builder setExpirationTime(Long expirationTime)
TableInfo.Builder
setExpirationTime
in class TableInfo.Builder
public Table.Builder setFriendlyName(String friendlyName)
TableInfo.Builder
setFriendlyName
in class TableInfo.Builder
public Table.Builder setTableId(TableId tableId)
TableInfo.Builder
setTableId
in class TableInfo.Builder
public Table.Builder setDefinition(TableDefinition definition)
TableInfo.Builder
StandardTableDefinition
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.Builder
public TableInfo.Builder setEncryptionConfiguration(EncryptionConfiguration configuration)
setEncryptionConfiguration
in class TableInfo.Builder
public Table.Builder setLabels(Map<String,String> labels)
TableInfo.Builder
Unstable, 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.Builder
public Table build()
TableInfo.Builder
TableInfo
object.build
in class TableInfo.Builder
Copyright © 2019 Google LLC. All rights reserved.