Package com.google.cloud.bigquery
Class BigQuery.TableOption
- java.lang.Object
-
- com.google.cloud.bigquery.BigQuery.TableOption
-
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- BigQuery
public static class BigQuery.TableOption extends Object
Class for specifying table get, create and update options.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BigQuery.TableOptionautodetectSchema(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.booleanequals(Object obj)static BigQuery.TableOptionfields(BigQuery.TableField... fields)Returns an option to specify the table's fields to be returned by the RPC call.inthashCode()static BigQuery.TableOptiontableMetadataView(BigQuery.TableMetadataView tableMetadataView)Returns an option to specify the metadata of the table.StringtoString()
-
-
-
Method Detail
-
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.fieldscan be used to specify only the fields of interest.TableInfo.getTableId()and type (which is part ofTableInfo.getDefinition()) are always returned, even if not specified.
-
autodetectSchema
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.
-
tableMetadataView
public static BigQuery.TableOption tableMetadataView(BigQuery.TableMetadataView tableMetadataView)
Returns an option to specify the metadata of the table.
-
-