Send feedback
Class TableInfo.Builder (2.23.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.23.2 keyboard_arrow_down
public abstract static class TableInfo.Builder
A builder for TableInfo
objects.
Constructors
Builder()
Methods
build()
public abstract TableInfo build()
Creates a TableInfo
object.
Returns
setDefaultCollation(String defaultCollation)
public abstract TableInfo.Builder setDefaultCollation(String defaultCollation)
Parameter
Name Description defaultCollation
String
Returns
setDefinition(TableDefinition definition)
public abstract TableInfo.Builder setDefinition(TableDefinition definition)
Parameter
Returns
setDescription(String description)
public abstract TableInfo.Builder setDescription(String description)
Sets a user-friendly description for the table.
Parameter
Name Description description
String
Returns
setEncryptionConfiguration(EncryptionConfiguration configuration)
public abstract TableInfo.Builder setEncryptionConfiguration(EncryptionConfiguration configuration)
Parameter
Returns
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
Name Description expirationTime
Long
Returns
setFriendlyName(String friendlyName)
public abstract TableInfo.Builder setFriendlyName(String friendlyName)
Sets a user-friendly name for the table.
Parameter
Name Description friendlyName
String
Returns
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
Returns
setRequirePartitionFilter(Boolean requirePartitionFilter)
public TableInfo.Builder setRequirePartitionFilter(Boolean requirePartitionFilter)
Parameter
Name Description requirePartitionFilter
Boolean
Returns
setTableId(TableId tableId)
public abstract TableInfo.Builder setTableId(TableId tableId)
Parameter
Returns
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-04-02 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?