Package com.google.cloud.bigquery
Class ViewDefinition.Builder
java.lang.Object
com.google.cloud.bigquery.TableDefinition.Builder<ViewDefinition,ViewDefinition.Builder>
com.google.cloud.bigquery.ViewDefinition.Builder
- Enclosing class:
- ViewDefinition
public abstract static class ViewDefinition.Builder
extends TableDefinition.Builder<ViewDefinition,ViewDefinition.Builder>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ViewDefinitionbuild()Creates aViewDefinitionobject.abstract ViewDefinition.BuilderSets the query used to create the view.abstract ViewDefinition.BuilderSets the table schema.abstract ViewDefinition.BuildersetType(TableDefinition.Type type) abstract ViewDefinition.BuildersetUseLegacySql(Boolean useLegacySql) Sets whether to use BigQuery's legacy SQL dialect for this query.setUserDefinedFunctions(UserDefinedFunction... userDefinedFunctions) Sets user defined functions that can be used byViewDefinition.getQuery().setUserDefinedFunctions(List<UserDefinedFunction> userDefinedFunctions) Sets user defined functions that can be used byViewDefinition.getQuery().
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setQuery
Sets the query used to create the view. -
setUserDefinedFunctions
public ViewDefinition.Builder setUserDefinedFunctions(List<UserDefinedFunction> userDefinedFunctions) Sets user defined functions that can be used byViewDefinition.getQuery().- See Also:
-
setUserDefinedFunctions
Sets user defined functions that can be used byViewDefinition.getQuery().- See Also:
-
setUseLegacySql
Sets whether to use BigQuery's legacy SQL dialect for this query. By default this property is set tofalse. If set tofalse, the query will use BigQuery's Standard SQL.If set to
nullortrue, legacy SQL dialect is used. This property is experimental and might be subject to change. -
setType
- Specified by:
setTypein classTableDefinition.Builder<ViewDefinition,ViewDefinition.Builder>
-
setSchema
Sets the table schema.- Specified by:
setSchemain classTableDefinition.Builder<ViewDefinition,ViewDefinition.Builder>
-
build
Creates aViewDefinitionobject.- Specified by:
buildin classTableDefinition.Builder<ViewDefinition,ViewDefinition.Builder>
-