Class BigQuery.TableOption (2.35.0)

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
NameDescription
autodetectboolean
Returns
TypeDescription
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
NameDescription
fieldsTableField[]
Returns
TypeDescription
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
NameDescription
tableMetadataViewBigQuery.TableMetadataView
Returns
TypeDescription
BigQuery.TableOption