Send feedback
Class Table.Builder (2.42.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.42.0 keyboard_arrow_down
public static class Table . Builder extends TableInfo . Builder
A builder for Table
objects.
Methods
build()
Creates a TableInfo
object.
Returns
Type
Description
Table
Overrides
setCloneDefinition(CloneDefinition cloneDefinition)
public TableInfo . Builder setCloneDefinition ( CloneDefinition cloneDefinition )
Overrides
setDefaultCollation(String defaultCollation)
public Table . Builder setDefaultCollation ( String defaultCollation )
Parameter
Name
Description
defaultCollation
String
Overrides
setDefinition(TableDefinition definition)
public Table . Builder setDefinition ( TableDefinition definition )
Overrides
setDescription(String description)
public Table . Builder setDescription ( String description )
Sets a user-friendly description for the table.
Parameter
Name
Description
description
String
Overrides
setEncryptionConfiguration(EncryptionConfiguration configuration)
public TableInfo . Builder setEncryptionConfiguration ( EncryptionConfiguration configuration )
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
Name
Description
expirationTime
Long
Overrides
setFriendlyName(String friendlyName)
public Table . Builder setFriendlyName ( String friendlyName )
Sets a user-friendly name for the table.
Parameter
Name
Description
friendlyName
String
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.
Overrides
setRequirePartitionFilter(Boolean requirePartitionFilter)
public Table . Builder setRequirePartitionFilter ( Boolean requirePartitionFilter )
Parameter
Name
Description
requirePartitionFilter
Boolean
Overrides
public Table . Builder setResourceTags ( Map<String , String > resourceTags )
Sets the resource tags applied to this table.
Overrides
setTableConstraints(TableConstraints tableConstraints)
public Table . Builder setTableConstraints ( TableConstraints tableConstraints )
Overrides
setTableId(TableId tableId)
public Table . Builder setTableId ( TableId tableId )
Parameter
Name
Description
tableId
TableId
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-02 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-02 UTC."],[],[]]