Class Table.Builder (2.35.0)

public static class Table.Builder extends TableInfo.Builder

A builder for Table objects.

Inheritance

java.lang.Object > TableInfo.Builder > Table.Builder

Methods

build()

public Table build()

Creates a TableInfo object.

Returns
TypeDescription
Table
Overrides

setCloneDefinition(CloneDefinition cloneDefinition)

public TableInfo.Builder setCloneDefinition(CloneDefinition cloneDefinition)
Parameter
NameDescription
cloneDefinitionCloneDefinition
Returns
TypeDescription
TableInfo.Builder
Overrides

setDefaultCollation(String defaultCollation)

public Table.Builder setDefaultCollation(String defaultCollation)
Parameter
NameDescription
defaultCollationString
Returns
TypeDescription
Table.Builder
Overrides

setDefinition(TableDefinition definition)

public Table.Builder setDefinition(TableDefinition definition)

Sets the table definition. Use 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.

Parameter
NameDescription
definitionTableDefinition
Returns
TypeDescription
Table.Builder
Overrides

setDescription(String description)

public Table.Builder setDescription(String description)

Sets a user-friendly description for the table.

Parameter
NameDescription
descriptionString
Returns
TypeDescription
Table.Builder
Overrides

setEncryptionConfiguration(EncryptionConfiguration configuration)

public TableInfo.Builder setEncryptionConfiguration(EncryptionConfiguration configuration)
Parameter
NameDescription
configurationEncryptionConfiguration
Returns
TypeDescription
TableInfo.Builder
Overrides

setExpirationTime(Long expirationTime)

public Table.Builder setExpirationTime(Long expirationTime)

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.

Parameter
NameDescription
expirationTimeLong
Returns
TypeDescription
Table.Builder
Overrides

setFriendlyName(String friendlyName)

public Table.Builder setFriendlyName(String friendlyName)

Sets a user-friendly name for the table.

Parameter
NameDescription
friendlyNameString
Returns
TypeDescription
Table.Builder
Overrides

setLabels(Map<String,String> labels)

public Table.Builder setLabels(Map<String,String> labels)

Sets the labels applied to this table.

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.

Parameter
NameDescription
labelsMap<String,String>
Returns
TypeDescription
Table.Builder
Overrides

setRequirePartitionFilter(Boolean requirePartitionFilter)

public Table.Builder setRequirePartitionFilter(Boolean requirePartitionFilter)
Parameter
NameDescription
requirePartitionFilterBoolean
Returns
TypeDescription
Table.Builder
Overrides

setTableConstraints(TableConstraints tableConstraints)

public Table.Builder setTableConstraints(TableConstraints tableConstraints)
Parameter
NameDescription
tableConstraintsTableConstraints
Returns
TypeDescription
Table.Builder
Overrides

setTableId(TableId tableId)

public Table.Builder setTableId(TableId tableId)

Sets the table identity.

Parameter
NameDescription
tableIdTableId
Returns
TypeDescription
Table.Builder
Overrides