Class TableInfo.Builder (2.38.2)

public abstract static class TableInfo.Builder

A builder for TableInfo objects.

Inheritance

java.lang.Object > TableInfo.Builder

Constructors

Builder()

public Builder()

Methods

build()

public abstract TableInfo build()

Creates a TableInfo object.

Returns
TypeDescription
TableInfo

setCloneDefinition(CloneDefinition cloneDefinition)

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

setDefaultCollation(String defaultCollation)

public abstract TableInfo.Builder setDefaultCollation(String defaultCollation)
Parameter
NameDescription
defaultCollationString
Returns
TypeDescription
TableInfo.Builder

setDefinition(TableDefinition definition)

public abstract TableInfo.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
TableInfo.Builder

setDescription(String description)

public abstract TableInfo.Builder setDescription(String description)

Sets a user-friendly description for the table.

Parameter
NameDescription
descriptionString
Returns
TypeDescription
TableInfo.Builder

setEncryptionConfiguration(EncryptionConfiguration configuration)

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

setExpirationTime(Long expirationTime)

public abstract TableInfo.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
TableInfo.Builder

setFriendlyName(String friendlyName)

public abstract TableInfo.Builder setFriendlyName(String friendlyName)

Sets a user-friendly name for the table.

Parameter
NameDescription
friendlyNameString
Returns
TypeDescription
TableInfo.Builder

setLabels(Map<String,String> labels)

public abstract TableInfo.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
TableInfo.Builder

setRequirePartitionFilter(Boolean requirePartitionFilter)

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

setResourceTags(Map<String,String> resourceTags)

public abstract TableInfo.Builder setResourceTags(Map<String,String> resourceTags)

Sets the resource tags applied to this table.

Parameter
NameDescription
resourceTagsMap<String,String>
Returns
TypeDescription
TableInfo.Builder

setTableConstraints(TableConstraints tableConstraints)

public abstract TableInfo.Builder setTableConstraints(TableConstraints tableConstraints)
Parameter
NameDescription
tableConstraintsTableConstraints
Returns
TypeDescription
TableInfo.Builder

setTableId(TableId tableId)

public abstract TableInfo.Builder setTableId(TableId tableId)

Sets the table identity.

Parameter
NameDescription
tableIdTableId
Returns
TypeDescription
TableInfo.Builder