Class BigQuery.TableOption (2.40.3)

public static class BigQuery.TableOption extends Option

Class for specifying table get, create and update options.

Inheritance

Object > com.google.cloud.bigquery.Option > BigQuery.TableOption

Static Methods

autodetectSchema(boolean autodetect)

public static BigQuery.TableOption autodetectSchema(boolean autodetect)

Returns an option to specify the schema of the table (only applicable for external tables) should be autodetected when updating the table from the underlying source.

Parameter
Name Description
autodetect boolean
Returns
Type Description
BigQuery.TableOption

fields(BigQuery.TableField[] fields)

public static BigQuery.TableOption fields(BigQuery.TableField[] fields)

Returns an option to specify the table's fields to be returned by the RPC call. If this option is not provided all table's fields are returned. TableOption.fields can be used to specify only the fields of interest. Table#getTableId() and type (which is part of Table#getDefinition()) are always returned, even if not specified.

Parameter
Name Description
fields TableField[]
Returns
Type Description
BigQuery.TableOption

tableMetadataView(BigQuery.TableMetadataView tableMetadataView)

public static BigQuery.TableOption tableMetadataView(BigQuery.TableMetadataView tableMetadataView)

Returns an option to specify the metadata of the table.

Parameter
Name Description
tableMetadataView BigQuery.TableMetadataView
Returns
Type Description
BigQuery.TableOption